I am pretty sure this:

        r...@server:/etc/mail# /usr/libexec/smtpd/makemap -t aliases virtual

doesn't work (even though it should ...)

Try:

        % sudo makemap -t aliases -o /etc/mail/virtual.db /etc/mail/virtual

The problem here is that the virtual.db file does not seem to be correct.

Gilles


On Wed, Dec 23, 2009 at 05:44:42AM -0600, Adam Thompson wrote:
> > -----Original Message-----
> > From: Gilles Chehade [mailto:gil...@openbsd.org]
> > Sent: Wednesday, December 23, 2009 05:40
> > To: Adam Thompson
> > Cc: misc@openbsd.org
> > Subject: Re: smtpd(8) virtual map question
> >
> > can you please show the command you used ?
> > and make sure that the makemap utility you are using is the one
> > from
> > smtpd-current ?
> >
> > Gilles
> 
> (smtpd.conf still as shown in previous message)
> 
> 
> r...@server:~# cd /usr/src/usr.sbin/smtpd
> r...@server:/usr/src/usr.sbin/smtpd# make install
> ===> makemap
> install -c -s -o root -g bin  -m 555 makemap /usr/libexec/smtpd/makemap
> install -c -o root -g bin -m 444 makemap.cat8 /usr/share/man/cat8/makemap.0
> install -c -o root -g bin -m 444 newaliases.cat8
> /usr/share/man/cat8/newaliases.0
> ===> smtpd
> install -c -s -o root -g bin  -m 555 smtpd /usr/sbin/smtpd
> install -c -o root -g bin -m 444 smtpd.cat8 /usr/share/man/cat8/smtpd.0
> install -c -o root -g bin -m 444 smtpd.conf.cat5
> /usr/share/man/cat5/smtpd.conf.0
> ===> smtpctl
> install -c -s -o root -g bin  -m 555 smtpctl /usr/sbin/smtpctl
> install -c -o root -g bin -m 444 smtpctl.cat8 /usr/share/man/cat8/smtpctl.0
> r...@server:/usr/src/usr.sbin/smtpd# cd /etc/mail
> r...@server:/etc/mail# /usr/libexec/smtpd/makemap -t aliases virtual
> r...@server:/etc/mail# cd
> r...@server:~# mailq
> MTA|1261567824.IuJRqPiBNpk89uM0.234828560|ENQUEUED|r...@server.athompso.net|athom...@??????????|1261567824|1|150
> non-print
> able character in reply
> MTA|1261567834.iMYjpLmzh2Yu6ZWn.1532357599|ENQUEUED|r...@server.athompso.net|athom...@??|1261567835|1|150
> non-printabl
> e character in reply
> MTA|1261567905.qxB9wIfzo8It5H3I.680850047|ENQUEUED|r...@server.athompso.net|athom...@?????????*??????|1261567905|1|150
> non-print
> able character in reply
> MTA|1261568135.vIYJxOGFKCpZP3Gu.1103753259|ENQUEUED|r...@server.athompso.net|athom...@??????????????????
> Vo???|1261568136|1|150 non-
> printable character in reply
> r...@server:~# smtpd -d -v
> 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
> ^Z[1] + Suspended            smtpd -d -v
> r...@server:~# bg
> [1] smtpd -d -v
> r...@server:~# mail athom...@athompso.net
> Subject: asdfl;kj
> asdf;lkj
> .
> EOT
> r...@server:~# smtp_new: incoming client on listener: 0x3c00c9c0
> session_pickup: greeting client
> command: EHLO   args: localhost
> command: MAIL FROM      args: <r...@server.athompso.net>
> 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: <athom...@athompso.net>
> lka_resolve_node: node is local username: athompso
> lka_resolve_node: resolved to address: athom...@???he}??????
> 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
> 1261568564.hby8E99xATcZQR4C: from=<r...@server.athompso.net>, size=402,
> nrcpts=1, proto=ESMTP, rela...@localhost [IPv6
> :::1]
> command: QUIT   args: (null)
> session_destroy: killing client: 0x8aef9000
> in batch dispatch
> lookup_mx shawmail.wp.shawcable.net
> lookup_a shawmail.wp.shawcable.net:0 (numeric)
> lookup_a failed
> implicit mx
> lookup_a shawmail.wp.shawcable.net:0
> lookup_a success
> lookup_mx success
> mta: getting datafd
> mta: connect 24.71.223.43
> lookup_ptr 24.71.223.43
> lookup_ptr success
> mta: entering smtp phase
> <<< 220 pd2ml1so-dmz.prod.shaw.ca ESMTP
> >>> EHLO server.athompso.net
> <<< 250-pd2ml1so-dmz.prod.shaw.ca
> <<< 250-8BITMIME
> <<< 250 SIZE 29360128
> >>> MAIL FROM:<r...@server.athompso.net>
> <<< 250 sender <r...@server.athompso.net> ok
> >>> RCPT TO:<athom...@???he}??????>
> <<< 250 recipient <athom...@???he}??????> ok
> >>> QUIT
> <<< 221 pd2ml1so-dmz.prod.shaw.ca
> mta: new status for athom...@???he}??????: 150 non-printable character in 
> reply
> mta: connect 64.59.128.135
> lookup_ptr 64.59.128.135
> lookup_ptr failed
> mta: entering smtp phase
> <<< 220 pd7ml1no-dmz.prod.shaw.ca ESMTP
> >>> EHLO server.athompso.net
> <<< 250-pd7ml1no-dmz.prod.shaw.ca
> <<< 250-8BITMIME
> <<< 250 SIZE 29360128
> >>> MAIL FROM:<r...@server.athompso.net>
> <<< 250 sender <r...@server.athompso.net> ok
> >>> RCPT TO:<athom...@???he}??????>
> <<< 250 recipient <athom...@???he}??????> ok
> >>> QUIT
> <<< 221 pd7ml1no-dmz.prod.shaw.ca
> mta: new status for athom...@???he}??????: 150 non-printable character in 
> reply

-- 
Gilles Chehade
freelance developer/sysadmin/consultant

                   http://www.poolp.org

Reply via email to