Operating System - HP-UX
1832255 Members
2404 Online
110041 Solutions
New Discussion

Running gen_cf with sendmail

 
Lora Ganeva
Regular Advisor

Running gen_cf with sendmail

I have an HP-ux 11i with sendmail 8.11.11 running on it.
But when I tried to inslude some local rulesets including check_compat in my .mc file and when restarting the sendmail daemon, there was a message that told me to run the gen_cf file and to generate the default sendmail.cf file again.
I don't want to use the default sendmail.cf file, I just want to add some more feature to my current configuration.
Any help would be greatly appreciated.
4 REPLIES 4
Balaji N
Honored Contributor

Re: Running gen_cf with sendmail

hi,
i am not very sure with hpux but the default procedure to generate a sendmail.cf is to edit the mc file and run m4.

but if you dont want to do it, u can add those options directly to the .cf file and then restart sendmail.
hth
-balaji
Its Always Important To Know, What People Think Of You. Then, Of Course, You Surprise Them By Giving More.
Lora Ganeva
Regular Advisor

Re: Running gen_cf with sendmail

I have added those features to the sendmail.mc file, generated the sendmail.cf and when I tried to restart the daemon, the message about the gen_cf file was displayed
Balaji N
Honored Contributor

Re: Running gen_cf with sendmail

hi,
dont have a 11i box around and so couldnt comment much. could u please tell the exact error. also, can u pls see where this gen_cf text appears from. googling gave me a release notes of sendmail from hp unix which says that gen_cf is a shell script used to enable certain options in sendmail.


hth
-balaji
Its Always Important To Know, What People Think Of You. Then, Of Course, You Surprise Them By Giving More.
Animesh Chakraborty
Honored Contributor

Re: Running gen_cf with sendmail

# cd /usr/newconfig/etc/mail/cf/cf

# ./gen_cf test.cf

Select the options below with space as the separator
1: generate sendmail.cf with Relay ON [ Includes 9 10 13 options ]
2: generate sendmail.cf with Relay OFF [ Default sendmail.cf file ]
3: generate sendmail.cf with Relay_entire_domain
4: generate sendmail.cf with Relay_based_on_MX
5: generate sendmail.cf with Relay_hosts_only
6: generate sendmail.cf with Access_db
7: generate sendmail.cf with Relay_local_from
8: generate sendmail.cf with Blacklist_recipients
9: generate sendmail.cf with Accept_unresolvable_domains
10: generate sendmail.cf with Accept_unqualified_senders
11: generate sendmail.cf with Realtime Blackhole List
12: generate sendmail.cf with Loose_relay_check
13: generate sendmail.cf with Promiscuous_relay

h: Help [ Number ] [all]
x: Exit from selection

6
Including access_db
Building .. sendmail.cf.gen file

Completed...

Then this new sendmail.cf file can be moved into place with the following
commands:

# cp /etc/mail/sendmail.cf /etc/mail/sendmail.orig
# cp -p test.cf /etc/mail/sendmail.cf

and sendmail needs to be restarted with the following command:

# killsm ; /sbin/init.d/sendmail.start


Did you take a backup?