> -----Original Message-----
> From: Gilles Chehade [mailto:gil...@openbsd.org]
> 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 <athom...@athompso.net> 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: <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...@bbb*bb
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=<r...@server.athompso.net>, 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:<r...@server.athompso.net>
<<< 250 sender <r...@server.athompso.net> ok
>>> RCPT TO:<athom...@bbb*bb>
<<< 250 recipient <athom...@bbb*bb> ok
>>> QUIT
<<< 221 pd3ml2so-dmz.prod.shaw.ca
mta: new status for athom...@bbb*bb: 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...@bbb*bb>
<<< 250 recipient <athom...@bbb*bb> ok
>>> QUIT
<<< 221 pd7ml1no-dmz.prod.shaw.ca
mta: new status for athom...@bbb*bb: 150 non-printable character in
reply

Reply via email to