Sendmail relay host

From: Johan Hartzenberg (jhartzen@csc.com)
Date: Mon Apr 10 2006 - 11:51:33 EDT


Hi there Solaris gurus. I hope this is not too much off-topic.

I need sendmail to relay all non-local mail to another mail server
(Running as a SMTP relay / gateway)

I have added "mailhost" to the /etc/hosts file and update the DS entry in
/etc/mail/sendmail.cf to read
        DSmailhost.$m

But to no avail. I get this error message in the logs (when I enable
mail.debug facility in syslogd)

Apr 10 17:37:00 zactomup206 sendmail[25164]: [ID 801593 mail.info]
k3AFb0bK025164: to=root, ctladdr=root (0/1), delay=00:00:00,
xdelay=00:00:00, mailer=relay, pri=30261, relay=[127.0.0.1] [127.0.0.1],
dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]

Also, I notice that the mail is sitting in /var/spool/clientmqueue/d*

when I run
        /usr/lib/sendmail -qf

Nothing hapens, except that I get the localhost connection refused message
in the log. I expect the connection to be refused by localhost - I'd like
sendmail to connect to the real SMTP relay host!

Furthermore, sendmail -bp seems to think there are no mail in the queue -
true enough, the files are in /var/spool/clientmqueue ...

Note #1: I turn sendmail as a listening service OFF - these hosts to not
receive email.
Note #2: This used to work until I upgraded the server 2 days ago - the
only change was the OS on this server (same IP and hostname, nothing
changed on the mail gateway or network, etc)

Thank you very much in advance,
  _Johan
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:39:33 EDT