delay between delivery for a specific transport.

2009-06-12 Thread Stéphane MERLE
Hi, I try to add a 1 second delay between each smtp sent to a spécifique transport. I followed this help file (in french as I feel more confortable in this langage) : http://postfix.traduc.org/index.php/QSHAPE_README.html#deferred_queue so I did : /etc/postfix/transport: problem.exempl

Re: Writing custom delivery agent to track bounces

2010-03-15 Thread Stéphane MERLE
Hi, Fitzgerald a écrit : Hi there! Currently I am looking for a way to implement a bounce handler and I would like some 'best practices' advice. I have very little experience in using postfix but I came up with some ideas and want to get some comments on those. An application sends out a bunch

asking ARP for an internal IP 169.254.140.241

2010-07-09 Thread Stéphane MERLE
Hi, My ISP (ovh) is complaining about my postfix servers doing wrong ARP demand, do you have any idea of what can cause this in my postfix configuration ? 188.165.55.92 : is one of the server ip (ip failover) Thu Jul 8 02:03:32 2010 : arp who-has 169.254.140.241 tell 188.165.55.92 Thu Jul 8

Re: asking ARP for an internal IP 169.254.140.241

2010-07-09 Thread Stéphane MERLE
Hi, Le 09/07/2010 15:21, Victor Duchovni a écrit : On Fri, Jul 09, 2010 at 01:47:40PM +0200, St?phane MERLE wrote: Hi, My ISP (ovh) is complaining about my postfix servers doing wrong ARP demand, do you have any idea of what can cause this in my postfix configuration ? 188.165.55.92 : is

Re: asking ARP for an internal IP 169.254.140.241

2010-07-09 Thread Stéphane MERLE
ot of them) -2+ : how can I do that with postfix ? Thanks for your help ... Stéphane Le 09/07/2010 15:48, Stéphane MERLE a écrit : Hi, Le 09/07/2010 15:21, Victor Duchovni a écrit : On Fri, Jul 09, 2010 at 01:47:40PM +0200, St?phane MERLE wrote: Hi, My ISP (ovh) is complainin

Fine tuning one transport

2011-02-02 Thread Stéphane MERLE
Hi, Reading this page (English and French), http://www.email-way.com/ I decided to create a specific transport for the orange destination. I just cannot find out which parameters I need to set to comply with : **- The maximum number of simultaneous connections is limited to 3 per MX is t

Re: Fine tuning one transport

2011-02-02 Thread Stéphane MERLE
Hi, Le 02/02/2011 18:49, Victor Duchovni a écrit : On Wed, Feb 02, 2011 at 05:56:23PM +0100, St?phane MERLE wrote: Reading this page (English and French), http://www.email-way.com/ I decided to create a specific transport for the orange destination. I just cannot find out which parameters I n

Re: Fine tuning one transport

2011-02-02 Thread Stéphane MERLE
Le 02/02/2011 19:12, Victor Duchovni a écrit : On Wed, Feb 02, 2011 at 07:03:38PM +0100, St?phane MERLE wrote: **- The maximum number of simultaneous connections is limited to 3 per MX **- Do not request more than a 1000 connections per hour **- Send over a 100 emails per open connection You

Re: delay between delivery for a specific transport.

2009-06-12 Thread Stéphane MERLE
hi, thanks for your help, is there any tutorial or help page to upgrade my 2.5.1 to 2.6.2 ? I am on ubuntu 2.6.28.1--std-ipv4-32 ? do I have to recompile it from the source code ? Thanks again ! Stéphane Victor Duchovni a écrit : On Fri, Jun 12, 2009 at 05:06:18PM +0200, St?phane MERLE

customizing postfix logs with a mailing id

2009-06-15 Thread Stéphane MERLE
Hi, I would love to customize a little the logs of postfix. We are using postfix for massmailing and I'd like to be able to get statistic on mailing, so I would like to tag each mail with the mailing number so I can split the log files by mailing and then get the bounced/sent/spam detection f

Re: customizing postfix logs with a mailing id

2009-06-15 Thread Stéphane MERLE
for delivery) Stéphane. Magnus Bäck a écrit : On Mon, June 15, 2009 10:35 am, Stéphane MERLE said: I would love to customize a little the logs of postfix. We are using postfix for massmailing and I'd like to be able to get statistic on mailing, so I would like to tag each mail with t

Re: delay between delivery for a specific transport.

2009-06-15 Thread Stéphane MERLE
Title: stephane Hi, I did update to the last 2.6-20081205 looks perfect :o) can I specify a rate_delay of less than 1s ? The aim of all these is to deal with " The mail server IP connecting to Windows Live Hotmail server has exceeded the rate limit allowed." messages in logs. Even by droppin

Re: customizing postfix logs with a mailing id

2009-06-15 Thread Stéphane MERLE
ut with the Return-Path if I could get it in the logs (not in a new line but within the sent or bounced lines, this way, I could parse it with grep). Thanks for your patience. Stéphane Stéphane MERLE a écrit : Hi, I would love to customize a little the logs of postfix. We are using postfix

Re: delay between delivery for a specific transport.

2009-06-15 Thread Stéphane MERLE
Hi, Can I set the parameter : transport_destination_rate_delay to less than a second ? if not, where is that sleep() in the code ? Thanks, Stéphane Stéphane MERLE a écrit : Hi, I try to add a 1 second delay between each smtp sent to a spécifique transport. I followed this help file

Re: delay between delivery for a specific transport.

2009-06-15 Thread Stéphane MERLE
Wietse Venema a écrit : Stephane MERLE: Hi, Can I set the parameter : transport_destination_rate_delay to less than a second ? Can you read the documentation? I am sorry, again, I apology, I do not want to waste your time or the one anybody would spend to help me out ... but

rule to manually put on hold

2009-06-19 Thread Stéphane MERLE
Hi, How can I set a rule to put manually on HOLD all email sent to temporarydeaddomain.com ? I understand that postfix will automatically sent the emails in the deferred and deal with them from time to time but as I know that the domain is dead for a while, I'd like to move them directly on h

Re: rule to manually put on hold

2009-06-20 Thread Stéphane MERLE
Terry Carmen a écrit : Hi, How can I set a rule to put manually on HOLD all email sent to temporarydeaddomain.com ? I understand that postfix will automatically sent the emails in the deferred and deal with them from time to time but as I know that the domain is dead for a while, I'd like to mov

Re: rule to manually put on hold

2009-06-21 Thread Stéphane MERLE
Magnus Bäck a écrit : On Sunday, June 21, 2009 at 08:35 CEST, Stéphane MERLE wrote: Terry Carmen a écrit : This should work: In main.cf: header_checks = regexp:/etc/postfix/header_checks In /etc/postfix/header_checks: /^To:@temporarydeaddomain.com/ HOLD Hi, thanks

Re: customizing postfix logs with a mailing id

2009-06-25 Thread Stéphane MERLE
Magnus Bäck a écrit : On Mon, June 15, 2009 12:01 pm, Stéphane MERLE said: Can I, at least, add the from in the logs ? Jun 15 11:59:01 smtp postfix/smtp[3061]: 683EB37AECA3: to=, relay=mx1.hotmail.com[65.55.92.136]:25, conn_use=91, delay=401662, delays=401197/464/0.13/0.32, dsn=2.0.0

status during email life ...

2009-11-12 Thread Stéphane MERLE
Hi, I just want to be sure, I understood correctly : When an email is sent, it gain the status "SENT" in the logs, if the distant server oppose a definitive error, it gain the "BOUNCED" status. If the distant server oppose a non definitive error or is enable to answer, the mail get the "DEFERR

Re: status during email life ...

2009-11-12 Thread Stéphane MERLE
Hi, Victor Duchovni a écrit : On Thu, Nov 12, 2009 at 11:30:51AM +0100, St?phane MERLE wrote: But then, what status get and email retried without success until the end ? 2009-11-12T10:59:32-0500 amnesiac postfix/qmgr[1706]: A323688C523: from=, size=385848, nrcpt=50 (queue activ

Re: status during email life ...

2009-11-12 Thread Stéphane MERLE
Victor Duchovni a écrit : On Thu, Nov 12, 2009 at 05:58:01PM +0100, St?phane MERLE wrote: Victor Duchovni a ?crit : On Thu, Nov 12, 2009 at 11:30:51AM +0100, St?phane MERLE wrote: But then, what status get and email retried without success until the end ? 2

Re: status during email life ...

2009-11-13 Thread Stéphane MERLE
Hi, Victor Duchovni a écrit : 2009-11-12T10:59:33-0500 amnesiac postfix/qmgr[1706]: A323688C523: removed 2009-11-12T10:59:33-0500 amnesiac postfix/smtp[29704]: 71FDF88C221: to=, relay=mail.example.com[192.168.0.1]:25, delay=0.15, delays=0.01/0/0.03/0.12, dsn=2.6.0, status=sent

Re: status during email life ...

2009-11-13 Thread Stéphane MERLE
Hi, Wietse Venema a écrit : St�phane MERLE: I just saw that those mail are sent to n...@localhost : 8652C2E741C6: to=, orig_to=, relay=local, delay=0.02, delays=0.01/0/0/0.01, dsn=5.1.1, status=bounced (unknown user: "null") surely because I set : bounce_notice_recipient = null in main.

Re: status during email life ...

2009-11-13 Thread Stéphane MERLE
Wietse Venema a écrit : Sorry, that is NOT a good reason to throw away rejected mail. When non-spam mail is rejected, the sender needs to know. It is up to the sender to deal with this, not the MTA operator. When people are sending real spam to hotmail, then silencing Postfix is not the proper

Re: status during email life ...

2009-11-13 Thread Stéphane MERLE
I will not post instructions to throw away non-delivery notices. I know that people would mis-use this to cover up their mistakes so that their users don't find out that mail was mis-handled. If you have a specialized need that never needs to deliver NDRs, then it is easy enough to edit the Pos

mailq full but nothing in active/deferred/incoming

2011-06-06 Thread Stéphane MERLE
Hi, I can see in my logs that postfix is "waiting" for 10s between each email. If I check the queues, there are empty qshape active / deferred / incoming but if I do a mailq | wc -l I got a little more than 100 000 mails (my hosting company had a problem with her domain this weekend and s

Re: mailq full but nothing in active/deferred/incoming

2011-06-06 Thread Stéphane MERLE
Hi, Le 06/06/2011 18:43, Wietse Venema a écrit : St?phane MERLE: Hi, I can see in my logs that postfix is "waiting" for 10s between each email. What are the name and arguments of the program that is waiting? this is a php script using the mail command ... $retour=mail($to, $subject, $message

Re: mailq full but nothing in active/deferred/incoming

2011-06-06 Thread Stéphane MERLE
Le 06/06/2011 19:14, Wietse Venema a écrit : St?phane MERLE: Hi, Le 06/06/2011 18:43, Wietse Venema a ?crit : St?phane MERLE: Hi, I can see in my logs that postfix is "waiting" for 10s between each email. What are the name and arguments of the program that is waiting? this is a php scrip

Re: mailq full but nothing in active/deferred/incoming

2011-06-06 Thread Stéphane MERLE
smtp_port = 25 and if I run : #dpkg --get-selections | grep -i "sendmail" # I got no package installed for sendmail ... Stéphane Le 06/06/2011 19:23, Stéphane MERLE a écrit : Le 06/06/

Re: mailq full but nothing in active/deferred/incoming

2011-06-06 Thread Stéphane MERLE
Le 06/06/2011 19:59, Wietse Venema a écrit : Wietse: What are the name and arguments of the program that is waiting? Stephane: this is a php script using the mail command ... $retour=mail($to, $subject, $message, $headers, $option5); Wietse: This uses /usr/sbin/sendmail. It places your mess

Re: mailq full but nothing in active/deferred/incoming

2011-06-06 Thread Stéphane MERLE
Le 06/06/2011 22:40, Stéphane MERLE a écrit : Le 06/06/2011 19:59, Wietse Venema a écrit : Wietse: What are the name and arguments of the program that is waiting? Stephane: this is a php script using the mail command ... $retour=mail($to, $subject, $message, $headers, $option5); Wietse

Re: mailq full but nothing in active/deferred/incoming

2011-06-07 Thread Stéphane MERLE
Le 07/06/2011 01:13, Wietse Venema a écrit : St?phane MERLE: Postfix installs its own sendmail command, to avoid breaking PHP etc. This was a smarter move than having to re-educate people. yes, I must agree on that ! (that's just confusing because the /usr/sbin/sendmail is not a script but a

Re: mailq full but nothing in active/deferred/incoming

2011-06-07 Thread Stéphane MERLE
Hi, Le 07/06/2011 13:08, Wietse Venema a écrit : St?phane MERLE: problem is not even coming from him ... it's just that I never had this kind of thing (mail in the mailq but nothing in qshape on active or deferred). Mailq reports mail in all Postfix queues: MAILDROP, INCOMING, ACTIVE DEFERRED,

Re: [SPAM] Re: found a "bug" on postfix 2.9.1

2012-03-06 Thread Stéphane MERLE
Le 06/03/2012 17:48, Wietse Venema a écrit : Eray Aslan: On Tue, Mar 06, 2012 at 08:40:16AM -0500, Wietse Venema wrote: start Start the Postfix mail system. This also runs the configuration check described above. status Indicate if the Postfix mail system is currently run

misunderstanding of queue_lifetime parameter ...

2012-09-18 Thread Stéphane MERLE
Hi, I think that I miss something here, we have those 2 parameters set in our postfix configuration : bounce_queue_lifetime = 8h maximal_queue_lifetime = 8h so, I thought that no mail will stay in the queue after 8h, however, I can see that mails are in the active queue for more than 1280 mi

Re: [SPAM] Re: misunderstanding of queue_lifetime parameter ...

2012-09-18 Thread Stéphane MERLE
Le 18/09/2012 16:31, Wietse Venema a écrit : St?phane MERLE: T 5 10 20 40 80 160 320 640 1280 1280+ TOTAL 300 0 0 0 1 4 19 31 14 98 154 Postfix will remove/return the mail after delivery tempfails AND the message is already more than xxx_life_time old. You have more mai

postfix rewrite Return-Path when used as relay

2014-05-27 Thread Stéphane MERLE
Hi all, I use postfix for a while as a "direct" mailer, but I have to setup a postfix box as relay ... and It look like postfix rewrite the Return-Path header. I use PHPMailer to send the mail to postfix (on an other port than 25) and postfix make the final delivery (it's working fine except

Re: postfix rewrite Return-Path when used as relay

2014-05-27 Thread Stéphane MERLE
Hi Wietse, Le 27/05/2014 16:12, Wietse Venema a écrit : St?phane MERLE: I use postfix for a while as a "direct" mailer, but I have to setup a postfix box as relay ... and It look like postfix rewrite the Return-Path header. The Return-Path header is READ-ONLY. Setting the Return-Path header H

postfix conf change with new version

2014-07-31 Thread Stéphane MERLE
Hi, I am not sure if this is my fault or not, so please accept my apology before hand just in case ;) I am setting up a new server with postfix using ubuntu 14.04 LTS so using postfix : mail_version = 2.11.0 I duplicate the conf from my old version ubuntu 12.04LTS with postfix version 2.7

Re: postfix conf change with new version

2014-07-31 Thread Stéphane MERLE
Le 31/07/2014 16:59, li...@rhsoft.net a écrit : Am 31.07.2014 um 16:52 schrieb Stéphane MERLE: I am not sure if this is my fault or not, so please accept my apology before hand just in case ;) I am setting up a new server with postfix using ubuntu 14.04 LTS so using postfix : mail_version

Re: postfix conf change with new version

2014-07-31 Thread Stéphane MERLE
Le 31/07/2014 17:19, Wietse Venema a écrit : St?phane MERLE: Le 31/07/2014 16:59, li...@rhsoft.net a ?crit : Am 31.07.2014 um 16:52 schrieb St?phane MERLE: I am not sure if this is my fault or not, so please accept my apology before hand just in case ;) I am setting up a new server with post

forwarding email from files format postfix

2015-11-18 Thread Stéphane MERLE
Hi, Someone made a little mistake (wrong TO) and some email (few thousand) were received on the wrong postfix server. now, I have files within a vmail folder. I need to forward those email to the correct smtp server (no-postfix) ... so I tried to do a batch script that use mail to send back th

Re: [SPAM] Re: forwarding email from files format postfix

2015-11-19 Thread Stéphane MERLE
Hi, Thanks for your help ! can I just change the To header within the files and move the file in a postfix folder for it to "resend" it ? if so .. which folder ... Stéphane Le 18/11/2015 16:02, Noel Jones a écrit : On 11/18/2015 2:53 AM, Stéphane MERLE wrote: Hi, Someone mad

Re: [SPAM] Re: forwarding email from files format postfix

2015-11-19 Thread Stéphane MERLE
/11/2015 10:22, Stéphane MERLE a écrit : Hi, Thanks for your help ! can I just change the To header within the files and move the file in a postfix folder for it to "resend" it ? if so .. which folder ... Stéphane Le 18/11/2015 16:02, Noel Jones a écrit : On 11/18/2015 2:53 AM

Re: forwarding email from files format postfix

2015-11-19 Thread Stéphane MERLE
11:30 A331AC2F9D root@returnmail:/var/spool/postfix/maildrop# nothing more in logs no error ... nothing ... Stéphane Le 19/11/2015 10:48, Stéphane MERLE a écrit : I found the folder : /var/spool/postfix/maildrop I also found a postdrop example, but not very usefull ;) http://www.e

Re: forwarding email from files format postfix

2015-11-19 Thread Stéphane MERLE
found out that I was a dummy and needed to pipe the content file ... and also found out that I shouldn't use postdrop but sendmail ... going this way now ... Stéphane Le 19/11/2015 11:36, Stéphane MERLE a écrit : I added the debug and now I get : root@:/home# postdrop -r -vvv

noob question on filtering and sending mail to bdd or rest request

2016-11-25 Thread Stéphane MERLE
Hi, I got a 2 dedicated postfix/dovecot servers that deal with return to replyto mails. For now, I got a bash script that "read and parse" each files in /Maildir/new and if it match some criterias (most on TO/FROM/SUBJECT) send it to another domain mailbox, from that new domain, the mails are

Re: noob question on filtering and sending mail to bdd or rest request

2016-11-26 Thread Stéphane MERLE
? How my script tell postfix that the process is ok or not for postfix to have a clean exit ? again sorry if those questions are not asked in the good place or form, please advise and I will try my best ! Stéphane Le 25/11/2016 à 11:35, Stéphane MERLE a écrit : Hi, I got a 2 dedicated

Re: noob question on filtering and sending mail to bdd or rest request

2016-11-28 Thread Stéphane MERLE
Thanks ! just perfect ... Stéphane Le 26/11/2016 à 16:13, Wietse Venema a écrit : St?phane MERLE: Hi, Hi, I found this and it looks just perfect for this ! http://serverfault.com/questions/322657/how-can-i-route-some-emails-to-a-script-in-postfix one more question, if my script die and c

pipe and resend mail. was [noob question on filtering and sending mail to bdd or rest request]

2016-12-21 Thread Stéphane MERLE
he variable but it seems to have no effect ... What am I missing here ? is there a easy way to reinsert correctly the eol ? Thanks for your help ! Stéphane Le 25/11/2016 à 11:35, Stéphane MERLE a écrit : Hi, I got a 2 dedicated postfix/dovecot servers that deal with return to replyto mai

Re: pipe and resend mail. was [noob question on filtering and sending mail to bdd or rest request]

2016-12-21 Thread Stéphane MERLE
Hi Viktor, Le 21/12/2016 à 15:02, Viktor Dukhovni a écrit : On Wed, Dec 21, 2016 at 10:42:37AM +0100, Stéphane MERLE wrote: when I send the mail content via sendmail : sendmail -t $nouveau_destinataire <<< $lemail This is wrong on many levels. 1. It revives *header* r

Re: pipe and resend mail. was [noob question on filtering and sending mail to bdd or rest request]

2016-12-21 Thread Stéphane MERLE
Hi Wietse, Le 21/12/2016 à 16:46, Wietse Venema a écrit : St?phane MERLE: at the top of my bash script I got : lemail=$(cat) Aaeeiigghh. Why not let the sendmail command read stdin. see more explanations below sendmail -i "$@" "$additional_recipient" < "$msg" will it work without the "-f

removing header of originating smtp from relayed mail

2015-02-20 Thread Stéphane MERLE
Hi, I am using a postfix as relay for email sent from an hoster that close the port 25, so I send the mail to the relayer through the 10025 port. but the IP of the originating server appear in the header of the mail and I would like to remove it : source server ---10025---> relayer ---25--->

Re: [SPAM] Re: removing header of originating smtp from relayed mail

2015-02-21 Thread Stéphane MERLE
Hi, Le 21/02/2015 00:38, Noel Jones a écrit : On 2/20/2015 5:12 PM, Stéphane MERLE wrote: Hi, I am using a postfix as relay for email sent from an hoster that close the port 25, so I send the mail to the relayer through the 10025 port. but the IP of the originating server appear in the header

Re: [SPAM] Re: [SPAM] Re: removing header of originating smtp from relayed mail

2015-02-23 Thread Stéphane MERLE
Le 21/02/2015 17:51, Noel Jones a écrit : On 2/21/2015 8:07 AM, Stéphane MERLE wrote: Hi, Le 21/02/2015 00:38, Noel Jones a écrit : On 2/20/2015 5:12 PM, Stéphane MERLE wrote: Hi, I am using a postfix as relay for email sent from an hoster that close the port 25, so I send the mail to the

Re: pipe and resend mail. was [noob question on filtering and sending mail to bdd or rest request]

2016-12-22 Thread Stéphane MERLE
e a lost time to rebuild everything in perl where the bash is working for 95% of the task, I just miss the forward as email of some messages. thanks for your time and patience Stéphane ! Le 21/12/2016 à 19:39, Viktor Dukhovni a écrit : On Wed, Dec 21, 2016 at 05:00:19PM +0100, Stéphane MERLE wrote

Re: pipe and resend mail

2016-12-23 Thread Stéphane MERLE
not good: 3 phases : 1 --> the mail is for admin or CRM ? --> forward to admin or crm && return 0 2 --> the mail is crap --> delete it && return 0 3 --> none of the previous --> send to bdd by api rest call http so the sendmail is not always the final decision ... I feel that the originale r