On Sat, Jan 12, 2008 at 04:37:46PM +0100, Chris Cohen wrote: > On Saturday 12 January 2008 16:21:29 Vijay Sankar wrote: > > On January 12, 2008 07:51:24 am Chris Cohen wrote: > > > Hi again, > > > > > > just wanted to configure 4.2's sendmail to use my smarthost to send > > > status mails. I went to /usr/share/sendmail, edited cf/openbsd-localhost > > > and cd/submit and created the cf files by typing m4 m4/cf.m4 > > > cf/openbsd-localhost.m4 > localhost.cf according > > > to /usr/share/sendmail/README. > > > > > > Now I have this in my /etc/mail/localhost.cf and submit.cf: > > > # "Smart" relay host (may be null) > > > DSmysmarthost.example.com > > > > > > I also pkill -HUP'ed sendmail but mails just don't pass my smarthost, > > > they are just delivered locally and I can't find anything special in my > > > maillog. > > > > > > Is there anything else I have to do? > > > > Probably a silly question, but did you copy the localhost.cf to /etc/mail? > > > Yes, I did :) > > What I forgot to mention: Mails for localhost and myhostname are delivered > locally, mails for other domains do pass my smarthost.
Well, that's perfectly normal. If sendmail determines it should deliver locally then it'll never do anything else. Not only is this normal, it's correct. If I have a box I don't want to have local mail on, I change /etc/mail/aliases and/or /etc/mail/virtusertable to reflect that, like "root: [EMAIL PROTECTED]" and "me: [EMAIL PROTECTED]" which is not local so it uses SMARTHOST... -- Darrin Chandler | Phoenix BSD User Group | MetaBUG [EMAIL PROTECTED] | http://phxbug.org/ | http://metabug.org/ http://www.stilyagin.com/ | Daemons in the Desert | Global BUG Federation