Kirk Strauser wrote:
I only want sendmail in a jail to do one thing: forward nightly reports from r...@localhost to a real account on another machine. What's the proper way to configure this? By default, sendmail_enable="NO" in /etc/rc.conf still gives a running sendmail that accepts mail from other hosts:

m...@realhost$ echo foo | mail$ tail -f /var/log/maillog
Feb 27 09:43:37 sm-mta[86832]: n1RFhbBp086832: from=<m...@realhost>, size=735, class=0, nrcpts=1, msgid=<20090227154335.877a442...@realhost>, bodytype=7BIT, proto=ESMTP, daemon=Daemon0, [] Feb 27 09:43:37 sm-mta[86833]: n1RFhbBp086832: to=<>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=30983, relay=local, dsn=2.0.0, stat=Sent

However, if I set sendmail_enable="NONE", then I can't send outbound email 
either:$ echo foo | mail m...@realhost$ tail -f /var/log/maillog
Feb 27 09:37:37 sendmail[86513]: n1RFbbg3086513: from=me, size=28, class=0, nrcpts=1, msgid=<>, relay...@localhost Feb 27 09:37:37 sendmail[86513]: n1RFbbg3086513: to...@realhost, ctladdr=me (1001/1001), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30028, relay=[] [], dsn=4.0.0, stat=Deferred: Connection refused by []

What's the happy medium between "sendmail wide open" (eg sendmail_enable="NO" (WTF?)) and "disabled mail system" (eg sendmail_enable="NONE")?

Here's a possible solution:



Dr Matthew J Seaman MA, D.Phil.                   7 Priory Courtyard
                                                 Flat 3
PGP:     Ramsgate
                                                 Kent, CT11 9PW

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to