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

On Wed, Dec 23, 2009 at 05:38:39AM -0600, Adam Thompson wrote:
> > -----Original Message-----
> > From: Gilles Chehade [mailto:[email protected]]
> > Subject: Re: smtpd(8) virtual map question
> >
> > did you use makemap -t aliases to generate virtual.db ?
> 
> No, I didn't.  I've now tried that, and the results still aren't quite what
> I was aiming for: now mail for <[email protected]> gets relayed
> outbound, but not quite correctly.  I've tried re-ordering the accept[...]
> entries in smtpd.conf, that doesn't appear to make any difference.  I'm a
> little unclear why it's relaying from localhost outbound, when smtpd.conf
> says only relay from 192.168.206.0/24... but obviously there's something
> else not right here anyway.
> -Adam
> 
> 
> 
> Smtpd.conf:
> 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 all for virtual "virtual" deliver to mda
> "/usr/local/bin/procmail -d %u"
> accept from 192.168.206.0/24 for all relay via shawmail.wp.shawcable.net
> 
> 
> 
> Output from smtpd -d -v:
> 
> r...@server:/etc/mail# 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
> 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]>
> lka_resolve_node: node is local username: athompso
> lka_resolve_node: resolved to address: athom...@?????????*??????
> 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
> 1261567905.qxB9wIfzo8It5H3I: from=<[email protected]>, size=394,
> nrcpts=1, proto=ESMTP, rela...@localhost [IPv6
> :::1]
> command: QUIT   args: (null)
> session_destroy: killing client: 0x7c6b4000
> 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 pd3ml2so-dmz.prod.shaw.ca ESMTP
> >>> EHLO server.athompso.net
> <<< 250-pd3ml2so-dmz.prod.shaw.ca
> <<< 250-8BITMIME
> <<< 250 SIZE 29360128
> >>> MAIL FROM:<[email protected]>
> <<< 250 sender <[email protected]> ok
> >>> RCPT TO:<athom...@?????????*??????>
> <<< 250 recipient <athom...@?????????*??????> ok
> >>> QUIT
> <<< 221 pd3ml2so-dmz.prod.shaw.ca
> mta: new status for athom...@?????????*??????: 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:<[email protected]>
> <<< 250 sender <[email protected]> ok
> >>> RCPT TO:<athom...@?????????*??????>
> <<< 250 recipient <athom...@?????????*??????> ok
> >>> QUIT
> <<< 221 pd7ml1no-dmz.prod.shaw.ca
> mta: new status for athom...@?????????*??????: 150 non-printable character in 
> reply

-- 
Gilles Chehade
freelance developer/sysadmin/consultant

                   http://www.poolp.org

Reply via email to