On Mon, Oct 26, 2009 at 01:37:04PM -0400, ddp wrote:
> I'm feeling stupid at the moment, and I'm sure someone will show my why 
> shortly.
> This is using the latest source in cvs for smtpd (updated today).
> I've setup smtpd by the man page, and configured the following config:
> 
> listen on lo0
> listen on re0
> map "aliases" { source db "/etc/mail/aliases.db" }
> map "virtual" { source db "/etc/mail/vmap.db" }
> accept for local deliver to mbox
> accept from 192.168.1.0/24 for domain "example.com"  deliver to mbox
> accept from 192.168.1.0/24 for virtual "virtual" deliver to mbox
> 
> Mail going to u...@ix.example.com (the mailserver) works just fine, but
> mail going to u...@example.com gets rejected with a 530:
> 
> smtp_dispatch_mfa: mfa handled return path
> session error: IPv6:::1: "530 Recipient rejected"
> session_destroy: killing client: 0x204cdf000
> 

It looks like you are initiating the session from localhost, but your
ruleset only allows deliveries to example.com and your virtual domains
if they are initiated from 192.168.1.0/24 , you may want to add the
following:

        accept for domain "example.com" deliver to mbox
        accept for virtual "virtual" deliver to mbox

also, you should really have:

        accept for all relay

otherwise local users will not be able to send outgoing mails (and
this includes smtpd trying to send an outgoing bounce)

Let me know if it fixes your issue

Gilles


-- 
Gilles Chehade
freelance developer/sysadmin/consultant

                   http://www.poolp.org

Reply via email to