Trying to set up a catch-all address for *[email protected] using smtpd(8),
but it's not working. Hoping someone can spot my error, I sure can't.
-Adam <[email protected]>
Running smtpd(8) from -current, smtpd.conf file is as follows:
listen on lo0
listen on fxp0
listen on em0
map "aliases" { source db "/etc/mail/aliases.db" }
map "virtual" { source db "/etc/mail/virtual.db" }
accept from all for local \
deliver to mda "/usr/local/bin/procmail -d %u"
accept from 192.168.206.0/24 for all \
relay via shawmail.wp.shawcable.net
accept from all for virtual "virtual" \
deliver to mda "/usr/local/bin/procmail -d %u"
/etc/procmailrc as follows:
VERBOSE=on
LOGABSTRACT=all
LOGFILE=/tmp/procmail.log
(and /tmp/procmail.log exists and is mode 666, for now)
Local user "athompso" exists.
Contents of /etc/mail/virtual:
@athompso.net athompso
when I run (locally) "mail athompso", it gets delivered locally. Great.
When I run (locally) "mail [email protected]", I get:
send-mail: 530 Recipient rejected: [email protected]
Not so great.
Output from "smtpd -d -v" while I tried those two test messages
(wrapping added manually for clarity):
startup [debug mode]
parent_send_config: configuring smtp
parent_send_config_client_certs: configuring smtp
parent_send_config_ruleset: reloading rules and maps
smtp_setup_events: listen on IPv6:fe80:1::211:aff:fe57:6836 \
port 25 flags 0x0 cert "em0"
smtp_setup_events: listen on 192.168.206.1 \
port 25 flags 0x0 cert "em0"
smtp_setup_events: listen on 174.5.101.109 \
port 25 flags 0x0 cert "fxp0"
smtp_setup_events: listen on IPv6:fe80:3::230:48ff:fe23:22a3 \
port 25 flags 0x0 cert "fxp0"
smtp_setup_events: listen on IPv6:fe80:5::1 \
port 25 flags 0x0 cert "lo0"
smtp_setup_events: listen on IPv6:::1 \
port 25 flags 0x0 cert "lo0"
smtp_setup_events: listen on 127.0.0.1 \
port 25 flags 0x0 cert "lo0"
smtp: will accept at most 244 clients
smtp_new: incoming client on listener: 0x3c00c9c0
session_pickup: greeting client
command: EHLO args: localhost
command: MAIL FROM args: <[email protected]>
session_rfc5321_mail_handler: sending notification to mfa
smtp_dispatch_mfa: mfa handled return path
queue_dispatch_smtp: creating message file
smtp_dispatch_queue: queue handled message creation
command: RCPT TO args: <[email protected]>
smtp_dispatch_queue: queue acknowledged message submission
command: DATA args: (null)
smtp_dispatch_queue: queue handled message creation
smtp_dispatch_queue: queue acknowledged message submission
1261566461.sJjtLWLHQGr1eEOg: from=\
<[email protected]>,size=391, nrcpts=1, proto=ESMTP, \
rela...@localhost [IPv6:::1]
command: QUIT args: (null)
session_destroy: killing client: 0x85a43000
in batch dispatch
executing filter as user: athompso
procmail: [3471] Wed Dec 23 05:07:41 2009
procmail: Assigning "LOGABSTRACT=all"
procmail: Assigning "LOGFILE=/tmp/procmail.log"
procmail: Opening "/tmp/procmail.log"
external mda exited okay
1261566461.sJjtLWLHQGr1eEOg: to=<[email protected]>, \
delay=0, stat=Sent
smtp_new: incoming client on listener: 0x3c00c9c0
session_pickup: greeting client
command: EHLO args: localhost
command: MAIL FROM args: <[email protected]>
session_rfc5321_mail_handler: sending notification to mfa
smtp_dispatch_mfa: mfa handled return path
queue_dispatch_smtp: creating message file
smtp_dispatch_queue: queue handled message creation
command: RCPT TO args: <[email protected]>
smtp_dispatch_mfa: mfa handled return path
1261566466.j6R3R59j4FmJkBrD: from=<[email protected]>, \
rela...@localhost [IPv6:::1], stat=LocalError \
(530 Recipient rejected: [email protected])
session_destroy: killing client: 0x81ba5000
WTF? I'm not seeing any indication that smtpd is even checking the
virtual table... help!