You are missing "aliases <name of aliases>" if you wish for your aliases to work.
IIRC that is in the manpage. -- -0- Sent from my phone, sorry about the formatting. ----- Original message ----- > >B B B B B B B B B ^^^--- unless you mention "from all", it will > >only accept from lo0 > > > > > accept for domain "opensipd.com" deliver to mbox > >B B B B B B B B B ^^^--- same here > > > > > accept for all relay > >B B B B B B B B B ^^^--- but don't do it here > > > > I had tried that before and no go. > > The only one that works is to root at the local hostname, or real users, > no aliases what so ever being virtual or local one. > > Like r...@spamtrap.realconnect.com or r...@opensipd.com will do be in > the local root mail account and that's the last two you can see in the > log below showing it as well. > > Here are all the details: > > # hostname > spamtrap.realconnect.com > # cat /etc/mail/aliases | grep test > test: dan...@presscom.net > test2: root > # newaliases > /etc/mail/aliases: 56 aliases > # cat /etc/mail/smtpd.conf > listen on "lo0" > listen on "dc0" > > map "aliases" { source db "/etc/mail/aliases.db" } > map "virtual" { source db "/etc/mail/virtual.db" } > > > accept from all for local deliver to mbox > accept from all for virtual "virtual" deliver to mbox > accept from all for domain "opensipd.com" deliver to mbox > accept for all relay > # cat virtual > te...@opensipd.com: dan...@presscom.net > te...@opensipd.com: root > # /usr/libexec/smtpd/makemap -t aliases -o /etc/mail/virtual.db > /etc/mail/virtual > # pkill smtpd > # smtpd -dv > 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::203:baff:fe10:6165 port 25 > flags 0x0 cert "dc0" > smtp_setup_events: listen on 66.63.0.75 port 25 flags 0x0 cert "dc0" > smtp_setup_events: listen on IPv6:fe80:4::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 245 clients > smtp_new: incoming client on listener: 0x4bd55800 > lookup_ptr 66.63.44.67 > lookup_ptr success > session_pickup: greeting client > command: EHLOB B args: host-2.ouellet.us > command: MAIL FROMB B B B B args: <dan...@realconnect.com> SIZE=412 > session_rfc5321_mail_handler: sending notification to mfa > smtp: got imsg_mfa_mail/rcpt > smtp: imsg_queue_create_message returned > command: RCPT TOB B B B B B B args: <t...@spamtrap.realconnect.com> > smtp: got imsg_mfa_mail/rcpt > 1273835446.EG3NGPKJR7lFn6wJ: from=<dan...@realconnect.com>, > relay=host-2.ouellet.us [66.63.44.67], stat=LocalError (530 5.0.0 > Recipient rejected: t...@spamtrap.realconnect.com) > command: QUITB B args: (null) > session_destroy: killing client: 0x437a8000 > smtp_new: incoming client on listener: 0x4bd55800 > lookup_ptr 66.63.44.67 > lookup_ptr success > session_pickup: greeting client > command: EHLOB B args: host-2.ouellet.us > command: MAIL FROMB B B B B args: <dan...@realconnect.com> SIZE=413 > session_rfc5321_mail_handler: sending notification to mfa > smtp: got imsg_mfa_mail/rcpt > smtp: imsg_queue_create_message returned > command: RCPT TOB B B B B B B args: <te...@spamtrap.realconnect.com> > smtp: got imsg_mfa_mail/rcpt > 1273835453.XUkSzWxzYz9J9W5C: from=<dan...@realconnect.com>, > relay=host-2.ouellet.us [66.63.44.67], stat=LocalError (530 5.0.0 > Recipient rejected: te...@spamtrap.realconnect.com) > command: QUITB B args: (null) > session_destroy: killing client: 0x437a8000 > smtp_new: incoming client on listener: 0x4bd55800 > lookup_ptr 66.63.44.67 > lookup_ptr success > session_pickup: greeting client > command: EHLOB B args: host-2.ouellet.us > command: MAIL FROMB B B B B args: <dan...@realconnect.com> SIZE=401 > session_rfc5321_mail_handler: sending notification to mfa > smtp: got imsg_mfa_mail/rcpt > smtp: imsg_queue_create_message returned > command: RCPT TOB B B B B B B args: <te...@opensipd.com> > smtp: got imsg_mfa_mail/rcpt > 1273835468.DrzO68BYcwUW9CEQ: from=<dan...@realconnect.com>, > relay=host-2.ouellet.us [66.63.44.67], stat=LocalError (530 5.0.0 > Recipient rejected: te...@opensipd.com) > command: QUITB B args: (null) > session_destroy: killing client: 0x4df54000 > smtp_new: incoming client on listener: 0x4bd55800 > lookup_ptr 66.63.44.67 > lookup_ptr success > session_pickup: greeting client > command: EHLOB B args: host-2.ouellet.us > command: MAIL FROMB B B B B args: <dan...@realconnect.com> SIZE=401 > session_rfc5321_mail_handler: sending notification to mfa > smtp: got imsg_mfa_mail/rcpt > smtp: imsg_queue_create_message returned > command: RCPT TOB B B B B B B args: <te...@opensipd.com> > smtp: got imsg_mfa_mail/rcpt > 1273835475.vpDWCOIUN0gNz1gP: from=<dan...@realconnect.com>, > relay=host-2.ouellet.us [66.63.44.67], stat=LocalError (530 5.0.0 > Recipient rejected: te...@opensipd.com) > command: QUITB B args: (null) > session_destroy: killing client: 0x4df54000 > smtp_new: incoming client on listener: 0x4bd55800 > lookup_ptr 66.63.44.67 > lookup_ptr success > session_pickup: greeting client > command: EHLOB B args: host-2.ouellet.us > command: MAIL FROMB B B B B args: <dan...@realconnect.com> SIZE=400 > session_rfc5321_mail_handler: sending notification to mfa > smtp: got imsg_mfa_mail/rcpt > smtp: imsg_queue_create_message returned > command: RCPT TOB B B B B B B args: <r...@opensipd.com> > smtp: got imsg_queue_commit_envelopes > command: DATAB B args: (null) > smtp: imsg_queue_message_file returned > smtp: got imsg_queue_commit_message > 1273835485.WXjxJQdkjTGCjtMI: from=<dan...@realconnect.com>, size=604, > nrcpts=1, proto=ESMTP, relay=host-2.ouellet.us [66.63.44.67] > command: QUITB B args: (null) > session_destroy: killing client: 0x437a8000 > forkmda: to /usr/libexec/mail.local -f dan...@realconnect.com root as root > 1273835485.WXjxJQdkjTGCjtMI: to=<r...@opensipd.com>, delay=0, stat=Sent > smtp_new: incoming client on listener: 0x4bd55800 > lookup_ptr 66.63.44.67 > lookup_ptr success > session_pickup: greeting client > command: EHLOB B args: host-2.ouellet.us > command: MAIL FROMB B B B B args: <dan...@realconnect.com> SIZE=412 > session_rfc5321_mail_handler: sending notification to mfa > smtp: got imsg_mfa_mail/rcpt > smtp: imsg_queue_create_message returned > command: RCPT TOB B B B B B B args: <r...@spamtrap.realconnect.com> > smtp: got imsg_queue_commit_envelopes > command: DATAB B args: (null) > smtp: imsg_queue_message_file returned > smtp: got imsg_queue_commit_message > 1273835503.PhSIz71uJwBbD5iG: from=<dan...@realconnect.com>, size=628, > nrcpts=1, proto=ESMTP, relay=host-2.ouellet.us [66.63.44.67] > command: QUITB B args: (null) > session_destroy: killing client: 0x4df54000 > forkmda: to /usr/libexec/mail.local -f dan...@realconnect.com root as root > 1273835503.PhSIz71uJwBbD5iG: to=<r...@spamtrap.realconnect.com>, > delay=1, stat=Sent > ^Csmtp server exiting > runner handler exiting > queue handler exiting > mail filter exiting > mail delivery agent exiting > lookup agent exiting > control process exiting > mail transfer agent exiting > parent terminating > #