Operating System - HP-UX
1833828 Members
2054 Online
110063 Solutions
New Discussion

sendmail 8.13 configuration

 
Carl Houseman
Super Advisor

sendmail 8.13 configuration

Using sendmail 8.13.3 under HP-UX 11.11.

gen_cf doesn't do anything for me - possibly a terminal emulation problem but it's anything but obvious about how to do what I need to do there.

I see other posts here with information about adding to .mc files but no reference to documentation for .mc file directives or what is appropriate for sendmail.mc vs. submit.mc.

Anyway, my requirements are fairly simple:

1. Deliver all outbound mail to smart host
2. Masquerade all outbound From addresses to eliminate the local hostname
3. Use the local aliases file

Previously I accomplished (1) by editing sendmail.cf and submit.cf directly but in order to solve (2) it appeared I should work with the .mc files. So I read other messages in the forums and added the following to sendmail.mc (actually generic-hpux10.mc):

define(`SMART_HOST',`mysmarthost.mydomain.com')dnl
MASQUERADE_AS(`mydomain.com')dnl
FEATURE(`masquerade_entire_domain')dnl
FEATURE(`masquerade_envelope')dnl

Also added the above masquerade directives to submit.mc.

Recompiled both with m4:

m4 ../m4/cf.m4 ./generic-hpux10.mc > sendmail.cf
m4 ../m4/cf.m4 ./submit.mc > submit.cf

and copied the results to /etc/mail.

The masquerade problem seems fixed when sending mail to a specific address.

But when sending mail to an alias, the alias name is appended with @mydomain.com. That doesn't work.

Any helpful tips welcome.
4 REPLIES 4
Steven E. Protter
Exalted Contributor

Re: sendmail 8.13 configuration

Shalom,

The only way to generate certain anti-spam features with sendmail on HP is with gen_cf

It generates an sendmail.mc file(though the name is not that) from which you run the m4 commands to get a sendmail.cf configuration.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Carl Houseman
Super Advisor

Re: sendmail 8.13 configuration

I don't care aboiut anti-spam features. I don't care if this machine is an open relay. gen_cf doesn't appear to have anyting that accomplishes my 3 goals.
whiteknight
Honored Contributor

Re: sendmail 8.13 configuration

Carl,

See this documents
http://docs.hp.com/en/B2355-91064/index.html

WK
Problem never ends, you must know how to fix it
Carl Houseman
Super Advisor

Re: sendmail 8.13 configuration

Some documentation is better than no documentation, but not by much. For example, find in that document where it explains how to configure a smart host in the .mc file. But thanks for the link anyway.

I'm closing this thread because I think I've resolved the issue I had with aliases. It's a long and convoluted path to this diagnosis but I'll write it up here just in case someday the search engine is fixed so that recent posts are indexed...

Back when sendmail was upgraded to 8.13 this server had a different name. Since then it was backed up with ignite and then re-installed from that backup with a different host name (the re-install was not done simply to change the host name, there were other reasons).

After that, sendmail 8.13 was still working for aliases and local delivery until I started messing around with m4 and the generic-hpux10.mc. After that, local delivery and aliases broke - all mail to names without any @domain.com was being sent to the smart host as though it was for a different domain. When I removed the smart host from the configuration, I started getting sendmail panics for local delivery because the mail couldn't go anywhere.

I did check that the sendmail.cw file was correct.

Oddly, I could still send mail from an outside source to this server and it would be delivered to local mailboxes.

I compared and even re-copied the .cf files from /usr/newconfig/etc/mail but that had no effect on the problem!

So I uninstalled and re-installed sendmail 8.13 and local delivery is working again. I even re-copied the .cf files from newconfig to /etc/mail and it stlil works. If anybody has any ideas of how I could screwed it up as it was, go ahead and post and I'll re-open and throw you some points!