jails, cron and sendmail

Gregory Shapiro gshapiro at freebsd.org
Sun Aug 27 17:17:21 UTC 2006


> But it prevents a vanilla system to try to connect to localhost:25 once
> a day. Only those periodic scripts send mails per default.

If you still want mail to work, but don't want to listen on a network
port:

cd /etc/mail/
make
vi `hostname`.submit.mc
    Change the 127.0.0.1 in the line "FEATURE(`msp', `[127.0.0.1]')dnl"
    to an IP address that has a listening SMTP server and will accept
    mail from your jail.  You can also use a hostname, for example,
    FEATURE(`msp', `smtp.example.com')
make install

Then make sure you leave the default for sendmail_outbound_enable ("YES")
and turn off the others.  You'll have a system where mail works just fine
and nothing listens on any TCP port.


More information about the freebsd-hackers mailing list