NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: postfix alternatives on NetBSD / pkgsrc



On Fri, Jan 18, 2019 at 08:34:21AM -0600, Edgar Pettijohn wrote:
> The only way I know is through an access(5) map. But I'm not sure if it
> can be done with this specific use case. 

I replaced `reject' with a regexp in class definition:

insiders_only = check_sender_access hash:/etc/postfix/insiders,
check_sender_access regexp:/etc/postfix/rejectall #was just reject here

(Well why doesn't posfix let me write the code right after reject instead
of having to create another regexp? I think it believes in making itself a
black art of sorts.)


In rejectall
/./ REJECT 550 5.1.1

Now gmail does not complain. However I still don't know why it still shows
554 5.7.1 first and then 550 5.1.1

Jan 19 17:45:24 localhost postfix/smtpd[8783]: NOQUEUE: reject: RCPT from mail-it1-f176.google.com[209.85.166.176]: 554 5.7.1 <yyyy%gmail.com@localhost>: Sender address rejected: 550 5.1.1;

gmail says:

554 5.7.1 <yyyy%gmail.com@localhost>: Sender address rejected: 550 5.1.1 

Mayuresh


Home | Main Index | Thread Index | Old Index