Re: jails, cron and sendmail



Hello Dirk,

Sunday, August 27, 2006, 2:13:03 AM, you wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

I have the following problem: since I need and do not like any kind of
smtp activity in my jails (there's no 127.0.0.1 in a jail, all services
listen to the jails external interface), I put those lines into my
/etc/rc.conf:

sendmail_enable="NO"
sendmail_outbound_enable="NO"
sendmail_submit_enable="NO"

this works fine: nothing listening on the jails interface... except that
cron tries to deliver its status mails and fails.

While failing, sendmail seems to hog cpu and finally floods
/var/spool/clientmqueue and /var/log/maillog.

My quick fix now is to replace /usr/libexec/sendmail/sendmail with
/usr/bin/true in /etc/mail/mailer.conf, however: it seems problematic
that cron insists on a mail sub system, when all it should do is execute
stuff periodically. There should be an option to let it only log to a file.

check /etc/defaults/periodic.conf

For my jails this would make sense, too: I never read root's mails
locally, anyway.

Am I missing the obvious solution here?

erdgeist

--
Best regards,
Daniel mailto:danger@xxxxxxxxxxx

_______________________________________________
freebsd-hackers@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • jails, cron and sendmail
    ... smtp activity in my jails (there's no 127.0.0.1 in a jail, ... listen to the jails external interface), I put those lines into my ... that cron insists on a mail sub system, when all it should do is execute ... For my jails this would make sense, too: I never read root's mails ...
    (freebsd-hackers)
  • Re: jails, cron and sendmail
    ... smtp activity in my jails (there's no 127.0.0.1 in a jail, ... That will work for any custom Cron just that you've set, but it won't work for the default periodic jobs, since periodichandles its own mailing ...
    (freebsd-hackers)
  • Re: jails, cron and sendmail
    ... smtp activity in my jails (there's no 127.0.0.1 in a jail, ... listen to the jails external interface), I put those lines into my ... relay the mails to a real mailserver. ...
    (freebsd-hackers)
  • Re: jails, cron and sendmail
    ... smtp activity in my jails (there's no 127.0.0.1 in a jail, ... [SorAlx] ... ridin' VN1500-B2 ...
    (freebsd-hackers)