Chris Cohen <[EMAIL PROTECTED]> writes:

> 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.

I configured my sendmail some times ago, but i believe that relaying to the
smarthost can be achieved by adding this to your /etc/mail/mailertable file:

.       relay:[hostname.of.your.smarthost.com]

Or

.       relay:[ip]

And maybe a make in /etc/mail/ if the file is hashed.

This is a tips that i've read in one of the openbsd mailling lists, so i bet
that checking the archives up to three month ago could give you some advice.

-- 
folays

Reply via email to