Re: unable to get smtpd_recipient_restrictions working

2012-01-13 Thread Noel Jones
On 1/13/2012 1:10 AM, Morten Frederik Kallesøe wrote: > Ty for you reply > > I think you misunderstood the direction of the mail i want to limit. i > wanted to limit "To" and not "From" You referred repeatedly to "sender". ... > > I went with the header_checks solution Be aware this will be un

Re: unable to get smtpd_recipient_restrictions working

2012-01-13 Thread /dev/rob0
On Friday 13 January 2012 01:10:41 Morten Frederik Kallesøe wrote: > I think you misunderstood the direction of the mail i want to > limit. i wanted to limit "To" and not "From" Your original attempt was check_sender_access which checks the envelope sender address. To lookup the recipient address

Re: unable to get smtpd_recipient_restrictions working

2012-01-12 Thread Morten Frederik Kallesøe
Ty for you reply I think you misunderstood the direction of the mail i want to limit. i wanted to limit "To" and not "From" /etc/postfix# postconf -n alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases append_dot_mydomain = no biff = no config_directory = /etc/postfix header_checks

Re: unable to get smtpd_recipient_restrictions working

2012-01-12 Thread Noel Jones
On 1/12/2012 4:41 AM, Morten Frederik Kallesøe wrote: > Hi. > > My goal: > only allow mail to certains domains > > @a.com > @b.com > @c.com > > everything else should bounce. [please post in plain text only. thanks.] OK. Several problems below...

unable to get smtpd_recipient_restrictions working

2012-01-12 Thread Morten Frederik Kallesøe
Hi. My goal: only allow mail to certains domains @a.com @b.com @c.com everything else should bounce. main.cf: smtpd_recipient_restrictions = check_sender_access hash:/etc/postfix/recipient_access, reject cat /etc/postfix/recipient_access a.dk OK b.dk OK c.dk OK postmap /etc/pos