Re: maximal_queue_lifetime has no effect on mails already queued - howto change?

2017-12-21 Thread Viktor Dukhovni
> On Dec 21, 2017, at 3:33 PM, Stefan Bauer wrote: > > damn. thats it. Thank you Motty! I just forgot that after re-queue it has > wait $maximal_queue_lifetime in queue. > Changed it for testing to 1m and mails were gone with non-delivery > notification to sender. Still a bad idea, any other

Re: header_checks for IP & email destination?

2017-12-21 Thread Viktor Dukhovni
> On Dec 21, 2017, at 7:54 PM, li...@mypenguin.net.au wrote: > > I've a very unique need to configure Postfix to deliver email based on > source IP and destination email address. > > Example: > --- > If: >Received: by mx0.example2.com AND Delivered-To: > li.

Re: maximal_queue_lifetime has no effect on mails already queued - howto change?

2017-12-21 Thread Viktor Dukhovni
> On Dec 21, 2017, at 3:21 PM, Motty Cruz wrote: > > I'm not sure if I understand you questions correctly. > > have you try re-queue the email with the following command: > postsuper -r ALL This is bad advice. That would in fact extend the queue lifetime of messages that are near expirati

header_checks for IP & email destination?

2017-12-21 Thread linux
Hi, Running postfix-2.10.1-6.el7.x86_64 on RHEL 7.4. I've a very unique need to configure Postfix to deliver email based on source IP and destination email address. Example: --- If: Received: by mx0.example2.com AND Delivered-To: li...@mypenguin.net.au

Re: Question regarding smtpd_recipient_restrictions

2017-12-21 Thread Wietse Venema
J Doe: > Hi, > > I have a basic question regarding the smtpd_recipient_restrictions parameter. > > From what I understand, these are restrictions applied to the SMTP > RCP TO command. > > In the case of a server that receives mail for a domain and also > allows clients to send mail through it (v

Re: maximal_queue_lifetime has no effect on mails already queued - howto change?

2017-12-21 Thread Wietse Venema
Stefan Bauer: > Dear Users, > > i changed maximal_queue_lifetime from 5d to 1h but mails already in queue are > not affected by this change. How can i remove mails from the queue and send > non-delivery-notifications to senders? i dont want to wait more days. my > queue shows: To restart the q

Question regarding smtpd_recipient_restrictions

2017-12-21 Thread J Doe
Hi, I have a basic question regarding the smtpd_recipient_restrictions parameter. From what I understand, these are restrictions applied to the SMTP RCP TO command. In the case of a server that receives mail for a domain and also allows clients to send mail through it (via AUTH’d clients), do

Re: maximal_queue_lifetime has no effect on mails already queued - howto change?

2017-12-21 Thread Motty Cruz
maybe a silly question but did you restart Postfix service? there might be some other configuration issues that we don't know about? On 12/21/2017 12:26 PM, Stefan Bauer wrote: Re: maximal_queue_lifetime has no effect on mails already queued - howto change? postfix just drops (...) after issu

maximal_queue_lifetime has no effect on mails already queued - howto change?

2017-12-21 Thread Stefan Bauer
damn. thats it. Thank you Motty! I just forgot that after re-queue it has wait $maximal_queue_lifetime in queue. Changed it for testing to 1m and mails were gone with non-delivery notification to sender. Thank you! Stefan -Ursprüngliche Nachricht- Von: Motty Cruz  Gesendet: Donn

Re: maximal_queue_lifetime has no effect on mails already queued - howto change?

2017-12-21 Thread Stefan Bauer
postfix just drops (...) after issuing postsuper -r ALL: Dec 21 21:24:51 mailserver postfix/postsuper[30232]: Requeued: 2 messages Mails are still in queue. As you can see, the recipient address is invalid so i just want to purge them - but with a bounce message to the sender so he can rese

Re: maximal_queue_lifetime has no effect on mails already queued - howto change?

2017-12-21 Thread Motty Cruz
I'm not sure if I understand you questions correctly. have you try re-queue the email with the following command: postsuper -r ALL depending on your OS, I used FreeBSD it would usually be here: /var/spool/postfix/deferred/ Thanks, Motty On 12/21/2017 12:06 PM, Stefan Bauer wrote: maximal_queue

maximal_queue_lifetime has no effect on mails already queued - howto change?

2017-12-21 Thread Stefan Bauer
Dear Users, i changed maximal_queue_lifetime from 5d to 1h but mails already in queue are not affected by this change. How can i remove mails from the queue and send non-delivery-notifications to senders? i dont want to wait more days. my queue shows: root@mailserver:/home/cwadmin# mailq -Queu