Re: virtual users, mailer daemon send mails to non existant recipient and dovecot store it

2016-08-24 Thread Tanstaafl
On 8/24/2016 8:08 AM, Tanstaafl wrote: > 2. Don't accept mail from domains that you control that don't originate > from your smtp server(s) > > Problem solved. Oops, that should of course read: 2. Don't accept mail that is both TO & FROM a (the same) domain that you control that doesn't origina

Re: virtual users, mailer daemon send mails to non existant recipient and dovecot store it

2016-08-24 Thread Tanstaafl
On 8/23/2016 11:57 AM, Sam wrote: > The problem is that the sender of the spam as something like > voicem...@ourdomain.fr ( the user voicemail doesn't exist in our database ) > > And sometimes dovecot create the directory and store the reply 's mail... 1. Don't accept mail for non-existent (inv

Re: virtual users, mailer daemon send mails to non existant recipient and dovecot store it

2016-08-24 Thread Aki Tuomi
You can remove the setting even when using static userdb, this will cause dovecot to perform passdb lookup to verify user. Aki On 24.08.2016 10:29, Aki Tuomi wrote: > You can just remove the allow_all_users setting. > > Aki > > > On 24.08.2016 10:18, Sam wrote: >> Does it works with pam? Can I s

Re: virtual users, mailer daemon send mails to non existant recipient and dovecot store it

2016-08-24 Thread Sam
Hello Sean, You're right, I going to switch off the return message too. Thanks! Samuel Le 23/08/2016 à 20:07, Sean Greenslade a écrit : On Tue, Aug 23, 2016 at 05:57:37PM +0200, Sam wrote: Hello, Sometime when we receive a spam or virus that is detected as it, mailer daemon send a reply to

Re: virtual users, mailer daemon send mails to non existant recipient and dovecot store it

2016-08-24 Thread Aki Tuomi
You can just remove the allow_all_users setting. Aki On 24.08.2016 10:18, Sam wrote: > Does it works with pam? Can I set it like this : > > userdb { >driver = pam >args = uid=1001 gid=1001 home=/home/vmail/%Lu allow_all_users=no > } > > Thanks Aki > > Le 24/08/2016 à 08:45, Aki Tuomi a é

Re: virtual users, mailer daemon send mails to non existant recipient and dovecot store it

2016-08-24 Thread Sam
Does it works with pam? Can I set it like this : userdb { driver = pam args = uid=1001 gid=1001 home=/home/vmail/%Lu allow_all_users=no } Thanks Aki Le 24/08/2016 à 08:45, Aki Tuomi a écrit : On 24.08.2016 09:43, Sam wrote: Hello Aki, here is the output: userdb { args = uid=1001 gi

Re: virtual users, mailer daemon send mails to non existant recipient and dovecot store it

2016-08-23 Thread Aki Tuomi
On 24.08.2016 09:43, Sam wrote: > Hello Aki, > here is the output: > > userdb { > args = uid=1001 gid=1001 home=/home/vmail/%Lu allow_all_users=yes > driver = static > } You basically accept all users here, this is why things get delivered. If you don't like this, change this to some other u

Re: virtual users, mailer daemon send mails to non existant recipient and dovecot store it

2016-08-23 Thread Sam
Hello Aki, here is the output: # 2.2.10: /etc/dovecot/dovecot.conf # OS: Linux 3.10.0-327.el7.x86_64 x86_64 CentOS Linux release 7.2.1511 (Core) auth_debug = yes auth_master_user_separator = * auth_mechanisms = plain login mail_location = maildir:~/Maildir managesieve_notify_capability = mailto

Re: virtual users, mailer daemon send mails to non existant recipient and dovecot store it

2016-08-23 Thread Sean Greenslade
On Tue, Aug 23, 2016 at 05:57:37PM +0200, Sam wrote: > Hello, > > Sometime when we receive a spam or virus that is detected as it, mailer > daemon send a reply to the sender to inform that the message is a spam or > content viruses. You probably shouldn't do this. The vast majority of spam / viru

Re: virtual users, mailer daemon send mails to non existant recipient and dovecot store it

2016-08-23 Thread Aki Tuomi
> On August 23, 2016 at 6:57 PM Sam wrote: > > > Hello, > > Sometime when we receive a spam or virus that is detected as it, mailer > daemon send a reply to the sender to inform that the message is a spam > or content viruses. > > The problem is that the sender of the spam as something like

virtual users, mailer daemon send mails to non existant recipient and dovecot store it

2016-08-23 Thread Sam
Hello, Sometime when we receive a spam or virus that is detected as it, mailer daemon send a reply to the sender to inform that the message is a spam or content viruses. The problem is that the sender of the spam as something like voicem...@ourdomain.fr ( the user voicemail doesn't exist in