On Thu, Sep 25, 2008 at 11:04 AM, mouss <[EMAIL PROTECTED]> wrote: > Victor Duchovni wrote: >> >> On Thu, Sep 25, 2008 at 12:55:44PM -0400, Jorey Bump wrote: >> >>>> mydestination = >>>> mydomain = example.com >>>> myhostname = loki.example.com >>> >>> Try: >>> >>> mydestination = $myhostname, localhost >> >> Note, with the default setting "append_dot_mydomain = yes", mail to >> "[EMAIL PROTECTED]" becomes "[EMAIL PROTECTED]", so the right name >> to include in mydestination is "localhost.$mydomain": >> >> mydestination = $myhostname, localhost.$mydomain, localhost >> >> the final "localhost" is there "just in case", the real work is done by >> localhost.$mydomain. >> > > freebsd cron jobs don't set a domain, so he only has to deal with > @$myorigin. but he must first replace Sendmail with postfix. > > and he'd better set the relay host to the mail server.
I don't believe sendmail was ever installed - IIRC, I selected to install with no MTA. So, in main.cf I set mydestination = $myhostname, localhost.$mydomain, localhost and stopped then started postfix (not a reload, just because...) and I get the following instead, from /var/log/maillog after running 'periodic daily': Sep 25 15:18:20 loki sendmail[28707]: m8PMIKLT028707: from=kbuff, size=795, class=0, nrcpts=1, msgid=<[EMAIL PROTECTED]>, [EMAIL PROTECTED] Sep 25 15:18:20 loki postfix/smtpd[28709]: connect from localhost[127.0.0.1] Sep 25 15:18:21 loki postfix/smtpd[28709]: 02E771A4CE5: client=localhost[127.0.0.1] Sep 25 15:18:21 loki postfix/cleanup[28724]: 02E771A4CE5: message-id=<[EMAIL PROTECTED]> Sep 25 15:18:21 loki sendmail[28707]: m8PMIKLT028707: to=root, ctladdr=kbuff (1001/1001), delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=30795, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (Ok: queued as 02E771A4CE5) Sep 25 15:18:21 loki postfix/qmgr[28221]: 02E771A4CE5: from=<[EMAIL PROTECTED]>, size=1339, nrcpt=1 (queue active) Sep 25 15:18:21 loki postfix/smtpd[28709]: disconnect from localhost[127.0.0.1] Sep 25 15:18:21 loki postfix/qmgr[28221]: warning: connect to transport local: No such file or directory Sep 25 15:18:21 loki postfix/error[28744]: 02E771A4CE5: to=<[EMAIL PROTECTED]>, relay=none, delay=0.2, delays=0.17/0.02/0/0.01, dsn=4.3.0, status=deferred (mail transport unavailable) Sep 25 15:18:21 loki sendmail[28760]: m8PMIL6I028760: from=kbuff, size=1479, class=0, nrcpts=1, msgid=<[EMAIL PROTECTED]>, [EMAIL PROTECTED] Sep 25 15:18:21 loki postfix/smtpd[28709]: connect from localhost[127.0.0.1] Sep 25 15:18:21 loki postfix/smtpd[28709]: 550F81A4CEF: client=localhost[127.0.0.1] Sep 25 15:18:21 loki postfix/cleanup[28724]: 550F81A4CEF: message-id=<[EMAIL PROTECTED]> Sep 25 15:18:21 loki sendmail[28760]: m8PMIL6I028760: to=root, ctladdr=kbuff (1001/1001), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=31479, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (Ok: queued as 550F81A4CEF) Sep 25 15:18:21 loki postfix/qmgr[28221]: 550F81A4CEF: from=<[EMAIL PROTECTED]>, size=2043, nrcpt=1 (queue active) Sep 25 15:18:21 loki postfix/smtpd[28709]: disconnect from localhost[127.0.0.1] Sep 25 15:18:21 loki postfix/error[28744]: 550F81A4CEF: to=<[EMAIL PROTECTED]>, relay=none, delay=0.12, delays=0.11/0/0/0.01, dsn=4.3.0, status=deferred (mail transport unavailable) postconf -n looks like this: alias_database = hash:/usr/local/etc/postfix/aliases alias_maps = hash:/usr/local/etc/postfix/aliases command_directory = /usr/local/sbin config_directory = /usr/local/etc/postfix daemon_directory = /usr/local/libexec/postfix debug_peer_level = 2 html_directory = no inet_interfaces = all local_recipient_maps = mail_owner = postfix mailq_path = /usr/local/bin/mailq manpage_directory = /usr/local/man mydestination = $myhostname, localhost.$mydomain, localhost mydomain = example.com myhostname = loki.example.com mynetworks = 127.0.0.0/8 myorigin = $mydomain newaliases_path = /usr/local/bin/newaliases queue_directory = /var/spool/postfix readme_directory = no relay_domains = $mydestination, $mydomain sample_directory = /usr/local/etc/postfix sendmail_path = /usr/local/sbin/sendmail setgid_group = maildrop smtpd_banner = $myhostname ESMTP $mail_name strict_rfc821_envelopes = yes transport_maps = hash:/usr/local/etc/postfix/transport unknown_local_recipient_reject_code = 550