Re: avoid outgoing mail sent to unknown users

2014-01-12 Thread Alexandre Ellert
but that *does not* help in case of the OP read the thread start it is simply impossible doing on one hand RCPT-verification because no verification on the root-cause (webserver) but at the same time not reject messages from the webserver in case verification on the final destination is

Re: avoid outgoing mail sent to unknown users

2014-01-12 Thread Wietse Venema
Alexandre Ellert: Is there anyway to populate a cache (file, SQL, ?) with real hard bounces from remote SMTP and tell postfix to stop send mail to these addresses next time ? Postfix logs remote SMTP server responses. You provide a tool that populates a table with bad addresses, and you

Re: avoid outgoing mail sent to unknown users

2014-01-11 Thread Benny Pedersen
Alexandre Ellert skrev den 2014-01-10 22:12: How can I tell Postfix to queue the mail in case of remote reply 4xx ? 4xx is softfails, so you already do

Re: avoid outgoing mail sent to unknown users

2014-01-11 Thread li...@rhsoft.net
Am 11.01.2014 18:57, schrieb Benny Pedersen: Alexandre Ellert skrev den 2014-01-10 22:12: How can I tell Postfix to queue the mail in case of remote reply 4xx ? 4xx is softfails, so you already do but that *does not* help in case of the OP read the thread start it is simply impossible

Re: avoid outgoing mail sent to unknown users

2014-01-10 Thread Alexandre Ellert
Wietse : You can push the problem back to the webservers, by using the the Postfix SMTP server's reject_unverified_recipient feature. With this, Postfix will make one connection for the recipient address, and then the Postfix SMTP server answers with 5XX to the web application when that

Re: avoid outgoing mail sent to unknown users

2014-01-10 Thread Wietse Venema
Alexandre Ellert: Wietse : You can push the problem back to the webservers, by using the the Postfix SMTP server's reject_unverified_recipient feature. With this, Postfix will make one connection for the recipient address, and then the Postfix SMTP server answers with 5XX to the web

Re: avoid outgoing mail sent to unknown users

2014-01-10 Thread Alexandre Ellert
Wietse : In that case use: /etc/postfix/main.cf: smtpd_recipient_restrictions = ... check_sender_access hash:/etc/postfix/sender_access ... /etc/postfix/sender_access: x...@example.com reject_unverified_recipient example.net

Re: avoid outgoing mail sent to unknown users

2014-01-10 Thread Alexandre Ellert
This works like a charm. One last thing, concerning order of smtpd_recipient_restrictions, I currently have this in master.cf : submission inet n - - - - smtpd ... -o

Re: avoid outgoing mail sent to unknown users

2014-01-10 Thread Wietse Venema
Alexandre Ellert: [reject_unverified_recipient] Can you confirm that in case of greylisting at the destination SMTP, it will work fine ? If the remote SMTP server uses greylisting, then the address verification result will be don't know (*) and the Postfix SMTP server will reply with 4xx

Re: avoid outgoing mail sent to unknown users

2014-01-10 Thread Alexandre Ellert
Wietse : If the remote SMTP server uses greylisting, then the address verification result will be don't know (*) and the Postfix SMTP server will reply with 4xx (unless you configure Postfix otherwise). Wietse (*) The Postfix SMTP client does not distiunguish between different

Re: avoid outgoing mail sent to unknown users

2014-01-10 Thread Alexandre Ellert
Wietse : If the remote SMTP server uses greylisting, then the address verification result will be don't know (*) and the Postfix SMTP server will reply with 4xx (unless you configure Postfix otherwise). Wietse (*) The Postfix SMTP client does not distiunguish between different kinds

Re: avoid outgoing mail sent to unknown users

2014-01-10 Thread Alexandre Ellert
I made more tests and greylisting is still a problem. I've tried with : unverified_recipient_tempfail_action = permit in main.cf But I got : fatal: bad configuration in mail.log How can I tell Postfix to queue the mail in case of remote reply 4xx ? I answer to myself, it seems

Re: avoid outgoing mail sent to unknown users

2014-01-10 Thread Wietse Venema
Alexandre Ellert: But I got : fatal: bad configuration in mail.log Show the complete logfile record! Wietse

avoid outgoing mail sent to unknown users

2014-01-09 Thread Alexandre Ellert
Hi, I relay transactional mail for my customer's web sites. Each website has it's own SASL authenticated account and mail are sent via submission or smtps. But, some website doesn't verify email existence when a user submit a web form or 'create an account'. That's why I often see my postfix

Re: avoid outgoing mail sent to unknown users

2014-01-09 Thread Wietse Venema
Alexandre Ellert: Hi, I relay transactional mail for my customer's web sites. Each website has it's own SASL authenticated account and mail are sent via submission or smtps. But, some website doesn't verify email existence when a user submit a web form or 'create an account'. That's

Re: avoid outgoing mail sent to unknown users

2014-01-09 Thread Noel Jones
On 1/9/2014 4:41 PM, Alexandre Ellert wrote: Hi, I relay transactional mail for my customer's web sites. Each website has it's own SASL authenticated account and mail are sent via submission or smtps. But, some website doesn't verify email existence when a user submit a web form or

Re: avoid outgoing mail sent to unknown users

2014-01-09 Thread Noel Jones
On 1/9/2014 5:01 PM, Noel Jones wrote: On 1/9/2014 4:41 PM, Alexandre Ellert wrote: Hi, I relay transactional mail for my customer's web sites. Each website has it's own SASL authenticated account and mail are sent via submission or smtps. But, some website doesn't verify email existence