On 5/12/10 4:21 PM, Gilles Chehade wrote:
I have very sporadic access to internet this week, your mail is
very hard to read, can you summarize as much as possible and
describe your exact issue with output from smtpd -dv, smtpd.conf
and making sure you are running the latest smtpd ?

Will check back my mails tomorrow evening

Hi Gilles,

Sorry for the long delay here. Just to mouch things in the works.

In Short what I try to do, spearing you all the details is to simply setup a virtual domain with a single user as a test.

For the example, I have a server setup and add one domain to it and try to have one user send emails to the server and getting it to a remote address. Something like:

dan...@opensipd.com to be relay to dan...@presscom.net

Nothing more for now.

Also, the setup is used with the latest snapshot to start with, but as it doesn't have all your two latest patch as well in the sparc64 yet, I did the CVS updates too and compile the absolute latest smtpd. I had already got the source as well.

# dmesg | grep '(GENERIC)'
OpenBSD 4.7-current (GENERIC) #315: Tue Apr 27 03:15:34 MDT 2010

# cd /usr
# cvs -qd anon...@anoncvs.ca.openbsd.org:/cvs get -P src/usr.sbin/smtpd
# cd src/usr.sbin/smtpd
# make clean
===> makemap
<snip> Lots of output.

# make
===> makemap
<snip> Lots of output.

# pkill smtpd

# make install
===> makemap
<snip> Lots of output.

# smtpd

Now running the latest one.

====================================================================
Reading some of your previous answers on misc@, this configuration below have to do it. A side note, I also tried again tonight these two possibility

accept for domain "opensipd.com" deliver to mbox

replace with

accept for domain "opensipd.com" alias "virtual" deliver to mbox

just in case.

Still no go.

And I tried without the as well with both variation above:

accept from all for local deliver to mbox

Just in case it possibly could cause a problem as well, but no go either.

=======================
in /etc/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 for virtual "virtual" deliver to mbox
accept for domain "opensipd.com" deliver to mbox
accept for all relay

************************

# cat virtual
dan...@opensipd.com: dan...@presscom.net

************************

Create the db with. Full path just to be sure it use your version of makemap.

/usr/libexec/smtpd/makemap -t aliases -o /etc/mail/virtual.db /etc/mail/virtual

************************

Still get the error:

530 5.0.0 Recipient rejected: dan...@opensipd.com

Full debug below as well and even disable pf to be 100%:

# 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: 0x4beb6800
lookup_ptr 66.63.44.67
lookup_ptr success
session_pickup: greeting client
command: EHLO   args: host-2.ouellet.us
command: MAIL FROM      args: <dan...@realconnect.com> SIZE=402
session_rfc5321_mail_handler: sending notification to mfa
smtp: got imsg_mfa_mail/rcpt
smtp: imsg_queue_create_message returned
command: RCPT TO        args: <dan...@opensipd.com>
smtp: got imsg_mfa_mail/rcpt
1273802922.ANMDYzJ7fPexgiyX: from=<dan...@realconnect.com>, relay=host-2.ouellet.us [66.63.44.67], stat=LocalError (530 5.0.0 Recipient rejected: dan...@opensipd.com)
command: QUIT   args: (null)
session_destroy: killing client: 0x477fc000
^Csmtp server exiting
runner handler exiting
queue handler exiting
mail transfer agent exiting
mail filter exiting
mail delivery agent exiting
lookup agent exiting
control process exiting
parent terminating
#


*****************************
I also try to create a user in the /etc/aliases file to see if that works. It do not either. Only works for real users, not aliases to local user.

the local server is spamtrp.realconnect.com, so email to

r...@spamtrap.realconnect.com

will be deliver to root local account.

In aliases I also created these two tests account to see:

# cat aliases | grep test
test: dan...@presscom.net
test2: root

and run newaliases obviously.

Still no go and debug show it as well:

# 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: 0x4e21b000
lookup_ptr 66.63.44.67
lookup_ptr success
session_pickup: greeting client
command: EHLO   args: host-2.ouellet.us
command: MAIL FROM      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 TO        args: <t...@spamtrap.realconnect.com>
smtp: got imsg_mfa_mail/rcpt
1273804116.2wR4IG17eVVH8paE: 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: QUIT   args: (null)
session_destroy: killing client: 0x49350000
smtp_new: incoming client on listener: 0x4e21b000
lookup_ptr 66.63.44.67
lookup_ptr success
session_pickup: greeting client
command: EHLO   args: host-2.ouellet.us
command: MAIL FROM      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 TO        args: <te...@spamtrap.realconnect.com>
smtp: got imsg_mfa_mail/rcpt
1273804126.5R40hpfXGu66SZPk: 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: QUIT   args: (null)
session_destroy: killing client: 0x49350000
^Csmtp server exiting
runner handler exiting
queue handler exiting
mail transfer agent exiting
mail filter exiting
mail delivery agent exiting
lookup agent exiting
control process exiting
parent terminating
#

=======================================

Hopefully this provide more details.

I guess I am missing something very stupid may be, but if so, fell free to flame me as i honestly do not see it and would welcome to know where the hell I am wrong. I can't get there.

Many thanks for your time for sure!

Daniel

Reply via email to