Re: How can I configure postfix to try multiple ports when sending mail?

2022-07-23 Thread Bill Cole
t work, but port 587 could work however I do not see postfix trying that port. Sending mail from a gmail accounts appears successful and my guess is because it does try to use port 587 when connecting to the destination mail server. It is considered a best practice to require authentication for

Re: How can I configure postfix to try multiple ports when sending mail?

2022-07-23 Thread Sebastiaan la Fleur
Thanks everyone for your insights! @Bernardo: I wasn´t aware that a delayed greeting could happen in the order of 20 seconds or so. That did the trick! @Wietse: Thank you as well for showing me how the transport maps work! Case closed. Regards, Sebastiaan On Saturday, July 23, 2022 18:36

Re: How can I configure postfix to try multiple ports when sending mail?

2022-07-23 Thread Bernardo Reino
On Sat, 23 Jul 2022, Sebastiaan la Fleur wrote: Hello everyone! Currently I am running into an issue that a (misconfigured) destination mailserver does not accept mail on port 25. It allows a TCP connection but it will not send a greeting. Instead, it expects mail to be send to port 587

Re: How can I configure postfix to try multiple ports when sending mail?

2022-07-23 Thread Wietse Venema
This requires Postfix version 3. /etc/postfix/main.cf: transport_maps = hash:/etc/postfix/transport /etc/postfix/transport: example.com smtp:example.com:123,example.com:234 NOT: smtp:example.com:123, smtp:example.com:234. Run postmap hash:/etc/postfix/transport after editing the file.

How can I configure postfix to try multiple ports when sending mail?

2022-07-23 Thread Sebastiaan la Fleur
however I do not see postfix trying that port. Sending mail from a gmail accounts appears successful and my guess is because it does try to use port 587 when connecting to the destination mail server. TLS level is on 'may': smtp_tls_security_level = may Thank you in advance for any

Re: How to deal with sending mail from host isbd.uk?

2021-02-12 Thread Chris Green
On Fri, Feb 12, 2021 at 11:33:53AM -0500, Wietse Venema wrote: > Chris Green: > > Just a quickie, how do I configure /etc/hostname etc. for a system at > > isbd.uk? > > > > It really *is* just isbd.uk:- > > > > chris$ host isbd.uk > > isbd.uk has address 92.243.2.29 > > isbd.uk mail

Re: How to deal with sending mail from host isbd.uk?

2021-02-12 Thread Wietse Venema
Chris Green: > Just a quickie, how do I configure /etc/hostname etc. for a system at > isbd.uk? > > It really *is* just isbd.uk:- > > chris$ host isbd.uk > isbd.uk has address 92.243.2.29 > isbd.uk mail is handled by 0 mail.vhdns.net. > > So, if I set /etc/hostname to isbd.uk then

AW: How to deal with sending mail from host isbd.uk?

2021-02-12 Thread ludicree
with sending mail from host isbd.uk? Just a quickie, how do I configure /etc/hostname etc. for a system at isbd.uk? It really *is* just isbd.uk:- chris$ host isbd.uk isbd.uk has address 92.243.2.29 isbd.uk mail is handled by 0 mail.vhdns.net. So, if I set /etc/hostname to isbd.uk then postfix

How to deal with sending mail from host isbd.uk?

2021-02-12 Thread Chris Green
Just a quickie, how do I configure /etc/hostname etc. for a system at isbd.uk? It really *is* just isbd.uk:- chris$ host isbd.uk isbd.uk has address 92.243.2.29 isbd.uk mail is handled by 0 mail.vhdns.net. So, if I set /etc/hostname to isbd.uk then postfix thinks the domain name is

Re: "Matching connector" error on edge transport server when sending mail from postfix to exchange

2020-04-01 Thread Wietse Venema
ipconfig: > is, for example, from a user acct on the postfix server to an acct on the > domain, postfix sends it to the proper edge transport server Should Postfix send this recipient to this edge server? If it should, then the error is not with Postfix. > and then that > server reports the

Re: "Matching connector" error on edge transport server when sending mail from postfix to exchange

2020-04-01 Thread ipconfig
I actually did google it, and since they all basically say "configure a send connector" I came here, since I am dealing with both postfix and exchange and have a working send connector configured. I guess I should have explained it better, but the traffic I'm talking about is, for example, from a

Re: "Matching connector" error on edge transport server when sending mail from postfix to exchange

2020-04-01 Thread Wietse Venema
ipconfig: > Hi all, > > I know this isn't a microsoft exchange forum, but I was hoping maybe someone > could help me eliminate any potential configuration problems with postfix > IRT the error I'm seeing on my exchange transport server. > > Disclaimer: I'm a complete noob with postfix. And

"Matching connector" error on edge transport server when sending mail from postfix to exchange

2020-04-01 Thread ipconfig
Hi all, I know this isn't a microsoft exchange forum, but I was hoping maybe someone could help me eliminate any potential configuration problems with postfix IRT the error I'm seeing on my exchange transport server. Disclaimer: I'm a complete noob with postfix. And pretty noobish at Exchange.

Re: Making Postfix know and use UNIX UIDs of local processes sending mail to localhost:25

2019-11-14 Thread Viktor Dukhovni
> On Nov 13, 2019, at 6:58 AM, Wietse Venema wrote: > > Implementations of the IDENT protocol (RFC 931) have been around > for decennia. Sure, but here's a comment from the source code of Debian's "pidentd": * We have observed Debian identd (on a fairly busy dual-CPU machine) * sometimes

Re: Making Postfix know and use UNIX UIDs of local processes sending mail to localhost:25

2019-11-13 Thread Wietse Venema
Viktor Dukhovni: > On Wed, Nov 13, 2019 at 03:14:36AM +0100, J?n Lalinsk? wrote: > > > Thanks for the insights. However, I am optimistic that for smtp sessions > > this can be made to (mostly) work, because the check for UID of the > > process holding the client port can be done some time after

Re: Making Postfix know and use UNIX UIDs of local processes sending mail to localhost:25

2019-11-12 Thread Viktor Dukhovni
On Wed, Nov 13, 2019 at 03:14:36AM +0100, Ján Lalinský wrote: > Thanks for the insights. However, I am optimistic that for smtp sessions > this can be made to (mostly) work, because the check for UID of the > process holding the client port can be done some time after SMTP > commands have been

Re: Making Postfix know and use UNIX UIDs of local processes sending mail to localhost:25

2019-11-12 Thread Ján Lalinský
Thanks for the insights. However, I am optimistic that for smtp sessions this can be made to (mostly) work, because the check for UID of the process holding the client port can be done some time after SMTP commands have been received by Postfix, at which point the connection is already

Re: Making Postfix know and use UNIX UIDs of local processes sending mail to localhost:25

2019-11-12 Thread Viktor Dukhovni
On Tue, Nov 12, 2019 at 05:13:05PM -0500, Viktor Dukhovni wrote: > > To achieve this, I'd like to set up Postfix+Linux -based outgoing mail > > server, possibly with some helper daemon. Any incoming TCP connection on > > localhost:25 where Postfix listens will be handled in a way dependent on > >

Re: Making Postfix know and use UNIX UIDs of local processes sending mail to localhost:25

2019-11-12 Thread Jaroslaw Rafa
Dnia 12.11.2019 o godz. 21:56:51 Ján Lalinský pisze: > To achieve this, I'd like to set up Postfix+Linux -based outgoing mail > server, possibly with some helper daemon. Any incoming TCP connection on > localhost:25 where Postfix listens will be handled in a way dependent on > the UID of the

Re: Making Postfix know and use UNIX UIDs of local processes sending mail to localhost:25

2019-11-12 Thread Viktor Dukhovni
> On Nov 12, 2019, at 3:56 PM, Ján Lalinský wrote: > > To achieve this, I'd like to set up Postfix+Linux -based outgoing mail > server, possibly with some helper daemon. Any incoming TCP connection on > localhost:25 where Postfix listens will be handled in a way dependent on the > UID of the

Making Postfix know and use UNIX UIDs of local processes sending mail to localhost:25

2019-11-12 Thread Ján Lalinský
Dear Postfix users, I'm trying to set up email sending from local users on a shared webhosting server. There are hundreds of different domains, each having unique UNIX UID and they need smtp service directly available on localhost:25, without any credentials checking. At the same time, I need the

Re: Sending mail to Gmail users via Gmail server?

2019-10-02 Thread Stuart Henderson
On 2019-09-29, Jaroslaw Rafa wrote: > The only thing I can't do is I cannot completely avoid > forwarding mail to Gmail accounts, because there are some addresses on my > server that need to be kept as forwarding addresses after people moved to > Gmail; but as I see from

Re: Sending mail to Gmail users via Gmail server?

2019-09-29 Thread Viktor Dukhovni
ctive if it turns out that it is > my domain name, and not my IP address, what Google "doesn't like". Most email sender reputation is by IP. > Even if > this succeeds, there is no guarantee that in the future Google will not go > crazy again and start treating my email as spam.

Re: Sending mail to Gmail users via Gmail server?

2019-09-29 Thread Jaroslaw Rafa
doesn't like". Even if this succeeds, there is no guarantee that in the future Google will not go crazy again and start treating my email as spam. No, thanks. Trying to configure sending mail via Gmail's server looks like a much more reasonable alternative compared to this... -- Regards, Jaroslaw Rafa

Re: Sending mail to Gmail users via Gmail server?

2019-09-29 Thread Viktor Dukhovni
On Sun, Sep 29, 2019 at 05:33:53PM -0400, Viktor Dukhovni wrote: > Reliably detecting a Google-operated SMTP server may be non-trivial. That said, the Google SMTP server certificate does provide a crib for the popular names (resorted): posttls-finger:

Re: Sending mail to Gmail users via Gmail server?

2019-09-29 Thread Viktor Dukhovni
On Sun, Sep 29, 2019 at 09:50:12PM +0200, Jaroslaw Rafa wrote: > Is it possible to somehow use a script in place of the lookup table for > transport_maps ? Thus I could write a script that checks the MX and returns > the appropriate result. http://www.postfix.org/socketmap_table.5.html > >

Re: Sending mail to Gmail users via Gmail server?

2019-09-29 Thread Jaroslaw Rafa
Dnia 29.09.2019 o godz. 13:30:38 Wietse Venema pisze: > > There are two places where Postfix can do MX lookups for a remote > recipient: > > - In the SMTP client. > > - In the SMTP server (check_recipient_mx_access). > > You can use check_recipient_mx_access to return

Re: Sending mail to Gmail users via Gmail server?

2019-09-29 Thread Jaroslaw Rafa
Dnia 29.09.2019 o godz. 13:21:53 Viktor Dukhovni pisze: > > The trouble is that such accounts are generally restricted to a > single envelope sender address, likely with a matching single "From" > address. You can define in Gmail account settings alternate sender addresses that this account is

Re: Sending mail to Gmail users via Gmail server?

2019-09-29 Thread Wietse Venema
Jaroslaw Rafa: > Hello, > as Gmail is often putting e-mails from me into recipients' Spam folder, and > there seems to be no solution for this (I tried everything to no avail), I'm > considering an idea of sending e-mail to Gmail users via Gmail server, with > help of a Gmail account specially

Re: Sending mail to Gmail users via Gmail server?

2019-09-29 Thread Viktor Dukhovni
On Sun, Sep 29, 2019 at 06:16:05PM +0200, Jaroslaw Rafa wrote: > I'm considering an idea of sending e-mail to Gmail users via Gmail server, > with > help of a Gmail account specially created for that purpose. (If that doesn't > help then - I guess - nothing helps :( ). The trouble is that such

Sending mail to Gmail users via Gmail server?

2019-09-29 Thread Jaroslaw Rafa
Hello, as Gmail is often putting e-mails from me into recipients' Spam folder, and there seems to be no solution for this (I tried everything to no avail), I'm considering an idea of sending e-mail to Gmail users via Gmail server, with help of a Gmail account specially created for that purpose.

Re: Strange TLS error when sending mail from one server to my Postfix SMTP server

2018-12-11 Thread Matus UHLAR - fantomas
> On Dec 10, 2018, at 8:00 PM, Sean Son > wrote: > > Thank you for the reply. Can the client be configured to trust more > than one SSL cert? most of clients support more than one certificate authority. On Mon, Dec 10, 2018 at 9:40 PM Viktor Dukhovni wrote: You've told us nothing about

Re: Strange TLS error when sending mail from one server to my Postfix SMTP server

2018-12-11 Thread Sean Son
On Mon, Dec 10, 2018 at 9:40 PM Viktor Dukhovni wrote: > > On Dec 10, 2018, at 8:00 PM, Sean Son > wrote: > > > > Thank you for the reply. Can the client be configured to trust more > than one SSL cert? > > You've told us nothing about the client, so it would be a miracle > if someone on the

Re: Strange TLS error when sending mail from one server to my Postfix SMTP server

2018-12-10 Thread Viktor Dukhovni
> On Dec 10, 2018, at 8:00 PM, Sean Son > wrote: > > Thank you for the reply. Can the client be configured to trust more than one > SSL cert? You've told us nothing about the client, so it would be a miracle if someone on the list could give an answer to that question. Is the client

Re: Strange TLS error when sending mail from one server to my Postfix SMTP server

2018-12-10 Thread Sean Son
On Mon, Dec 10, 2018 at 6:57 PM Viktor Dukhovni wrote: > > On Dec 10, 2018, at 6:41 PM, Sean Son > wrote: > > > > 330462 Dec 7 20:39:21 mailer postfix/smtpd[12242]: SSL3 alert > read:fatal:unknown CA > > 330463 Dec 7 20:39:21 mailer postfix/smtpd[12242]: SSL_accept:failed > in SSLv3 read

Re: Strange TLS error when sending mail from one server to my Postfix SMTP server

2018-12-10 Thread Viktor Dukhovni
> On Dec 10, 2018, at 6:41 PM, Sean Son > wrote: > > 330462 Dec 7 20:39:21 mailer postfix/smtpd[12242]: SSL3 alert > read:fatal:unknown CA > 330463 Dec 7 20:39:21 mailer postfix/smtpd[12242]: SSL_accept:failed in > SSLv3 read client key exchange A > 330464 Dec 7 20:39:21 mailer

Strange TLS error when sending mail from one server to my Postfix SMTP server

2018-12-10 Thread Sean Son
330467 Dec 7 20:39:21 mailer postfix/smtpd[12242]: disconnect from unknown[X.X.X.75] I have substituted our IP addresses with X's for security purposes. Any suggestions on how to fix this issue? It's preventing us from sending mail from the monitoring server to the SMTP Server. The ONLY way

Re: postfix stops sending mail after sometime

2018-12-07 Thread Vincent Lefevre
On 2018-10-20 16:26:33 -0700, gaurav.parashar wrote: > Hii, > I had installed postfix in Ubuntu 16.04 and it was working seamlessly. Some > time back I upgraded it to Ubuntu 18.04 and suddenly emails stop coming to > my inbox. It gave me this error: > postfix/postdrop[27466]: warning:

Re: postfix stops sending mail after sometime

2018-10-23 Thread B. Reino
On Tue, 23 Oct 2018, Dominic Raferd wrote: On Tue, 23 Oct 2018 at 09:06, B. Reino wrote: On Sat, 20 Oct 2018, Wietse Venema wrote: gaurav.parashar: Hii, I had installed postfix in Ubuntu 16.04 and it was working seamlessly. Some time back I upgraded it to Ubuntu 18.04 and suddenly

Re: postfix stops sending mail after sometime

2018-10-23 Thread Dominic Raferd
On Tue, 23 Oct 2018 at 09:06, B. Reino wrote: > On Sat, 20 Oct 2018, Wietse Venema wrote: > > > gaurav.parashar: > >> Hii, > >> I had installed postfix in Ubuntu 16.04 and it was working seamlessly. > Some > >> time back I upgraded it to Ubuntu 18.04 and suddenly emails stop coming > to > >> my

Re: postfix stops sending mail after sometime

2018-10-23 Thread B. Reino
On Sat, 20 Oct 2018, Wietse Venema wrote: gaurav.parashar: Hii, I had installed postfix in Ubuntu 16.04 and it was working seamlessly. Some time back I upgraded it to Ubuntu 18.04 and suddenly emails stop coming to my inbox. It gave me this error: postfix/postdrop[27466]: warning:

Re: postfix stops sending mail after sometime

2018-10-22 Thread Matus UHLAR - fantomas
gaurav.parashar: I had installed postfix in Ubuntu 16.04 and it was working seamlessly. Some time back I upgraded it to Ubuntu 18.04 and suddenly emails stop coming to my inbox. It gave me this error: postfix/postdrop[27466]: warning: mail_queue_enter: create file maildrop/675261.27466:

Re: postfix stops sending mail after sometime

2018-10-21 Thread Matus UHLAR - fantomas
gaurav.parashar: I had installed postfix in Ubuntu 16.04 and it was working seamlessly. Some time back I upgraded it to Ubuntu 18.04 and suddenly emails stop coming to my inbox. It gave me this error: postfix/postdrop[27466]: warning: mail_queue_enter: create file maildrop/675261.27466:

Re: postfix stops sending mail after sometime

2018-10-20 Thread Scott Kitterman
On Saturday, October 20, 2018 08:52:23 PM Wietse Venema wrote: > gaurav.parashar: > > Hii, > > I had installed postfix in Ubuntu 16.04 and it was working seamlessly. > > Some > > time back I upgraded it to Ubuntu 18.04 and suddenly emails stop coming to > > my inbox. It gave me this error: > >

Re: postfix stops sending mail after sometime

2018-10-20 Thread Wietse Venema
gaurav.parashar: > Hii, > I had installed postfix in Ubuntu 16.04 and it was working seamlessly. Some > time back I upgraded it to Ubuntu 18.04 and suddenly emails stop coming to > my inbox. It gave me this error: > postfix/postdrop[27466]: warning: mail_queue_enter: create file >

postfix stops sending mail after sometime

2018-10-20 Thread gaurav.parashar
Hii, I had installed postfix in Ubuntu 16.04 and it was working seamlessly. Some time back I upgraded it to Ubuntu 18.04 and suddenly emails stop coming to my inbox. It gave me this error: postfix/postdrop[27466]: warning: mail_queue_enter: create file maildrop/675261.27466: Permission denied I

Re: Sending mail from home lan still not being accepted on the internet

2017-08-13 Thread Harry Putnam
On Sun, Aug 13, 2017, at 21:13, Wietse Venema wrote: [...] > > Aug 13 14:37:55 u0 postfix/pickup[6727]: C630B180CB9: uid=1000 > > from= > > > > Aug 13 14:37:55 u0 postfix/cleanup[6746]: C630B180CB9: > > message-id=<20170813183755.C630B180CB9@u1> > > > > Aug 13 14:37:55 u0 postfix/qmgr[6728]:

Re: Sending mail from home lan still not being accepted on the internet

2017-08-13 Thread Wietse Venema
Harry Putnam: > Logs from attempting to send a message like this: > > mailx -v -s "TEST 170813_140410 u0" hp...@fastmail.fm < ~/txtmsg.txt You're using mailx -v, therefore Postfix will send you an email message with a summary of the delivery. I'll get back to that later. Fist the message

Re: Sending mail from home lan still not being accepted on the internet

2017-08-13 Thread Gary
Wouldn't you need something like no-ip so your router can be found? Try to ping your router from a device not on your network such as from a cell phone.   Original Message   From: hp...@fastmail.fm Sent: August 13, 2017 11:54 AM To: postfix-users@postfix.org Subject: Sending mail from home

Sending mail from home lan still not being accepted on the internet

2017-08-13 Thread Harry Putnam
HDW: HP wx8600 work station, 2x Xeon X5470, 3.33GHz Running Openindiana/hipster HOST (Ilumos branch of solaris 11) Running ubunto 17.04 inside Vbox vm on above host postfix-3.14, Sasl 2.1.27~ Attempting to get postfix setup My situtation is single user on home lan with no real domain name

Re: Sending mail to two streams...

2017-05-02 Thread Wietse Venema
Michael Segel: > Hi, > > I am curious about being able to send email to both Dovecot for > the end user?s mail box and then also on to a stream where one can > do some analytics? Or chain the streams so that you can do analytics > on both in-bound and out-bound and then deliver it? > > I know

Sending mail to two streams...

2017-05-02 Thread Michael Segel
Hi, I am curious about being able to send email to both Dovecot for the end user’s mail box and then also on to a stream where one can do some analytics? Or chain the streams so that you can do analytics on both in-bound and out-bound and then deliver it? I know that it can be done

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

2016-12-22 Thread Viktor Dukhovni
On Dec 22, 2016, at 12:36 PM, Wietse Venema wrote: # Final command.  Shell will remove the temp file and exit with # Sendmail's exit code. /usr/sbin/sendmail "$@"And do not forget the '--' inpipe ... argv=/path/to/script -f ${sender} -- ${recipient}And the missing "< $msg"

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

2016-12-22 Thread Viktor Dukhovni
> On Dec 22, 2016, at 12:36 PM, Wietse Venema wrote: > >> # Final command. Shell will remove the temp file and exit with >> # Sendmail's exit code. >> /usr/sbin/sendmail "$@" > > And do not forget the '--' in > pipe ... argv=/path/to/script -f ${sender} --

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

2016-12-22 Thread Wietse Venema
Viktor Dukhovni: > > > On Dec 22, 2016, at 3:51 AM, St?phane MERLE > > wrote: > > > > First, I save the message in the file descriptor 3 > > > >msg=$(mktemp /tmp/msg.XX) || exit 75 > >cat > $msg || { rm $msg; exit 75; } > >exec 3< $msg || { rm

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

2016-12-22 Thread Viktor Dukhovni
> On Dec 22, 2016, at 3:51 AM, Stéphane MERLE > wrote: > > First, I save the message in the file descriptor 3 > >msg=$(mktemp /tmp/msg.XX) || exit 75 >cat > $msg || { rm $msg; exit 75; } >exec 3< $msg || { rm $msg; exit 75; } >rm $msg > >

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
Hi Viktor, I though I new a little of bash but in fact no ... you're a bash king ! if I understood it well : first, I save the message in the file descriptor 3 msg=$(mktemp /tmp/msg.XX) || exit 75 cat > $msg || { rm $msg; exit 75; } exec 3< $msg || { rm $msg; exit 75; } rm

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

2016-12-21 Thread Viktor Dukhovni
On Wed, Dec 21, 2016 at 05:00:19PM +0100, Stéphane MERLE wrote: > lemail=$(cat) Instead of buffering the message into a shell variable, buffer it into a temporary file (and set a "trap" command to delete the file). You can then inspect the file content before sending the right message. It is

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

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

2016-12-21 Thread Wietse Venema
St?phane MERLE: > at the top of my bash script I got : > > lemail=$(cat) Aaeeiigghh. Why not let the sendmail command read stdin. > sendmail -i "$@" "$additional_recipient" < "$msg" > > will it work without the "-f" ? If you invoke the script via pipe ... argv=/path/to/script -f

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* recipients,

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

2016-12-21 Thread Viktor Dukhovni
> On Dec 21, 2016, at 9:10 AM, Ansgar Wiechers wrote: > >>3. I has a mysterious "<<<", instead of "<". > > `... <<< $var` is bash 4 syntactic sugar for `echo $var | ...`. An exceedingly bad way to handle message content, especially sans quotes around "$var". --

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

2016-12-21 Thread Viktor Dukhovni
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* recipients, possibly creating mail loops and/or double deliveries.

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, I did manage to pipe my emails to a bash script which filter and push to an api some emails, but I would like to "forward" some of them to an email address. when I send the mail content via sendmail : sendmail -t $nouveau_destinataire <<< $lemail or sendmail $nouveau_destinataire <<<

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

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

2016-11-26 Thread Wietse Venema
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 cannot process the mail (too > much cpu or ... script bug), the mail

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

2016-11-26 Thread 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 cannot process the mail (too much cpu or ... script bug), the mail is lost or will go back in queue ?

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

Re: Mailing list sending mail to server with strong anti-spoofing setting

2015-08-10 Thread Vincent Pelletier
On Fri, 7 Aug 2015 17:59:06 +, Viktor Dukhovni postfix-us...@dukhovni.org wrote : Don't confuse smtp with smtpd. Gah, this is embarrassing. This was indeed my understanding and intention, and I somehow still managed to push myself into this trap. Many eyes, etc. Thanks a lot, this part now

Re: Mailing list sending mail to server with strong anti-spoofing setting

2015-08-10 Thread Vincent Pelletier
On Fri, 7 Aug 2015 16:27:35 -0400 (EDT), wie...@porcupine.org (Wietse Venema) wrote : I suspect that they are enforcing a DMARC policy that requires modifications to list managers so that they replace the From: header address with the sender address of the mailing list. Google for dmarc

Re: Mailing list sending mail to server with strong anti-spoofing setting

2015-08-07 Thread wilfried.es...@essignetz.de
Hi, maybe this, from postfix doc, will help you: http://www.postfix.org/ADDRESS_REWRITING_README.html#generic Willi Am 07.08.2015 um 13:51 schrieb Vincent Pelletier: Hello, I have a Mailman + postfix setup (old versions: mailman 2.1.11, postfix 2.5.5), and the mail server of one of

Re: Mailing list sending mail to server with strong anti-spoofing setting

2015-08-07 Thread Vincent Pelletier
On Fri, 07 Aug 2015 18:53:49 +0200, wilfried.es...@essignetz.de wilfried.es...@essignetz.de wrote : That makes me wonder. Do they know the difference between envelope-to and to-field, or envelope-from and from-field? (This makes me remember to the beginning of my fechmail era - they do not use

Re: Mailing list sending mail to server with strong anti-spoofing setting

2015-08-07 Thread wilfried.es...@essignetz.de
Am 07.08.2015 um 18:24 schrieb Vincent Pelletier: On Fri, 07 Aug 2015 17:10:11 +0200, wilfried.es...@essignetz.de wilfried.es...@essignetz.de wrote : maybe this, from postfix doc, will help you: http://www.postfix.org/ADDRESS_REWRITING_README.html#generic The problem with this is that it

Re: Mailing list sending mail to server with strong anti-spoofing setting

2015-08-07 Thread Viktor Dukhovni
On Fri, Aug 07, 2015 at 01:51:34PM +0200, Vincent Pelletier wrote: foo.com mangle_from: master.cf: mangle_from unix - - - - - smtpd -o header_checks=pcre:/etc/postfix/mangle_from.pcre Don't confuse smtp with smtpd. $ postconf -Mf smtp/unix smtp unix - - n

Re: Mailing list sending mail to server with strong anti-spoofing setting

2015-08-07 Thread Vincent Pelletier
On Fri, 07 Aug 2015 17:10:11 +0200, wilfried.es...@essignetz.de wilfried.es...@essignetz.de wrote : maybe this, from postfix doc, will help you: http://www.postfix.org/ADDRESS_REWRITING_README.html#generic The problem with this is that it will rewrite To: field too, so sending to ...@foo.com

Re: Mailing list sending mail to server with strong anti-spoofing setting

2015-08-07 Thread Wietse Venema
Vincent Pelletier: Hello, I have a Mailman + postfix setup (old versions: mailman 2.1.11, postfix 2.5.5), and the mail server of one of subscribers' domain started rejecting mails when From header domain is its own domain (foo.com MX rejecting incoming @foo.com mails). This of course

Mailing list sending mail to server with strong anti-spoofing setting

2015-08-07 Thread Vincent Pelletier
Hello, I have a Mailman + postfix setup (old versions: mailman 2.1.11, postfix 2.5.5), and the mail server of one of subscribers' domain started rejecting mails when From header domain is its own domain (foo.com MX rejecting incoming @foo.com mails). This of course happens when a @foo.com member

spam detected in sending mail

2014-11-26 Thread Paolo De Michele
Hi there, I configured a postfix version 2.11 on ubuntu 14.04 LTS x64 When I send an email to gmail account and other (like hotmail.it) the emails end up in the spam box (the IP domain is not blacklisted) I would know why. A normal user can send an email only with starttls authentication (I

Re: spam detected in sending mail

2014-11-26 Thread Wietse Venema
Paolo De Michele: Hi there, I configured a postfix version 2.11 on ubuntu 14.04 LTS x64 When I send an email to gmail account and other (like hotmail.it) the emails end up in the spam box (the IP domain is not blacklisted) I would know why. Set up an IPv4 DNS PTR record that resolves to

Re: spam detected in sending mail

2014-11-26 Thread Cristiano Deana
On Wed, Nov 26, 2014 at 2:42 PM, Paolo De Michele pa...@paolodemichele.it wrote: Anyone can help me please? Not enough details (log, domains, anything), but this Received: from [172.16.2.153] (dynamic-adsl-78-15-215-90.clienti.tiscali.it. [78.15.215.90]) could be a good start point. --

Re: spam detected in sending mail

2014-11-26 Thread Paolo De Michele
On 26/11/14 15:03, Cristiano Deana wrote: On Wed, Nov 26, 2014 at 2:42 PM, Paolo De Michele pa...@paolodemichele.it wrote: Anyone can help me please? Not enough details (log, domains, anything), but this Received: from [172.16.2.153] (dynamic-adsl-78-15-215-90.clienti.tiscali.it.

Re: Problem with sending mail from localhost but not remote host

2014-10-01 Thread Steve Hawes
Hi, I have finally figured out the problem and it was nothing to do with Postfix. The application on the local server had been misconfigured and was supplying an incorrect value (undefined) to the BCC field which had been completely overlooked in the logs. Apologies for taking up your time

Problem with sending mail from localhost but not remote host

2014-09-30 Thread Steve Hawes
Hi, I am relatively new to postfix but have worked with many mail systems over the years and am quite familiar with various flavours of Unix/Linux. My problem is as follows: I have a Centos 6.5 system running Plesk V12 on which I have selected Postfix as the mailing system - let’s call this

Re: Problem with sending mail from localhost but not remote host

2014-09-30 Thread Wietse Venema
What does undefined mean? Is that something that you changed, or is that really logged by Postfix? Wietse

Re: Problem with sending mail from localhost but not remote host

2014-09-30 Thread Steve Hawes
That was really logged by postfix. This is the bit that is driving me mad as the To address is there at the start of the trivial-rewrite process but by the time it finishes all that is left is undefined Steve On 30 Sep 2014, at 14:29, Wietse Venema wie...@porcupine.org wrote: What does

Re: Problem with sending mail from localhost but not remote host

2014-09-30 Thread Wietse Venema
There is no undefined in Postfix so you have a bug in your database lookups. Test the queries (as seen in logfile) by hand. When a result does not exist, the database MUST return NOTFOUND The database MUST NOT return an empty result. The database MUST NOT return undefined or other crap.

Re: Problem with sending mail from localhost but not remote host

2014-09-30 Thread Steve Hawes
Will try that and see what I get though what I do not understand is why it works fine for a remote client but not if the client is localhost. What would cause the difference? Thanks for your help so far. Steve On 30 Sep 2014, at 15:20, Wietse Venema wie...@porcupine.org wrote: There is no

Re: Problem with sending mail from localhost but not remote host

2014-09-30 Thread Wietse Venema
Steve Hawes: Will try that and see what I get though what I do not understand is why it works fine for a remote client but not if the client is localhost. What would cause the difference? There are many examples where Postfix can make a query for non-existent information. Trying to avoid one

Postfix 2.3.3 as relay with timed out while sending MAIL FROM with no socket opened

2014-02-25 Thread Roberto Giordani
[xxx.xx.xxx.xxx] timed out while sending MAIL FROM) This behavior continues for about 5 minutes and on the next queue manager run, all emails will be accepted and delivered. At first time I though the problem was on the destination SMTP server, but running tcpdump during deferred the server didn't open

Re: Postfix 2.3.3 as relay with timed out while sending MAIL FROM with no socket opened

2014-02-25 Thread Wietse Venema
Roberto Giordani: dsn=4.4.2, status=deferred (conversation with smtp.xxx.it[xxx.xx.xxx.xxx] timed out while sending MAIL FROM) This behavior continues for about 5 minutes and on the next queue manager run, all emails will be accepted and delivered. At first time I though the problem

Re: Postfix 2.3.3 as relay with timed out while sending MAIL FROM with no socket opened

2014-02-25 Thread Noel Jones
, status=deferred (conversation with smtp.xxx.it[xxx.xx.xxx.xxx] timed out while sending MAIL FROM) This behavior continues for about 5 minutes and on the next queue manager run, all emails will be accepted and delivered. At first time I though the problem was on the destination SMTP server

Re: Postfix 2.3.3 as relay with timed out while sending MAIL FROM with no socket opened

2014-02-25 Thread Roberto Giordani
about 40.000 emails, but during working hours I receive repeated random periods where the Postfix smtp client doesn't open any socket to destination main SMTPD server and the maillog file write dsn=4.4.2, status=deferred (conversation with smtp.xxx.it[xxx.xx.xxx.xxx] timed out while sending MAIL FROM

Re: Postfix 2.3.3 as relay with timed out while sending MAIL FROM with no socket opened

2014-02-25 Thread Wietse Venema
Roberto Giordani: Thank you for reply Noel, I've found some interesting info about smtp_connection_cache_destinations and I've added the IP of my relay. But to improve the interval between delivery and avoid a large of deferred mail what else do you think should I change in my conf?

Re: Postfix 2.3.3 as relay with timed out while sending MAIL FROM with no socket opened

2014-02-25 Thread Viktor Dukhovni
On Tue, Feb 25, 2014 at 11:30:36PM +0100, Roberto Giordani wrote: queue_run_delay = 150s minimal_backoff_time = 150s maximal_backoff_time = 300s Reducing the maximal backoff time likely makes things worse, not better. -- Viktor.

Re: Random 550 5.1.1 when sending mail to a virtual domain alias

2013-12-13 Thread Venkat
Quite possibly it is, see: http://www.postfix.org/DATABASE_README.html#safe_db The best solution is to use CDB, rather than Berkeley DB for these, if your Postfix package supports CDB, use it. CDB performs updates atomically and uses less memory, ... If switching to CDB is not

Random 550 5.1.1 when sending mail to a virtual domain alias

2013-12-12 Thread Venkat
Hello all, I wanted to get the list's advice on a rather odd problem we've been experiencing on our Postfix mail relays. We are running Postfix 2.6.6 on Redhat Enterprise Linux 6.3. There are 3 Postfix mail relays which sit behind a Cisco ACE load balancer that performs round-robin load

Re: Random 550 5.1.1 when sending mail to a virtual domain alias

2013-12-12 Thread Viktor Dukhovni
On Thu, Dec 12, 2013 at 10:10:37PM -0800, Venkat wrote: Is rebuilding the virtual.db file frequently (every few minutes) causing Postfix to lose access temporarily to the aliases in that database causing the random lookup failures? Quite possibly it is, see:

Re: sending mail using more then one smarthost\relayhost and sasl?

2013-09-12 Thread Eliezer Croitoru
On 09/08/2013 11:47 PM, Jeroen Geilman wrote: Did you ask any other question than the one about transport(5) I answered above ? If so, I am afraid it was lost in the noise. Thanks, No my setup is working perfectly and I know how to ask questions most of the time. If I do ask it do mean I

Re: sending mail using more then one smarthost\relayhost and sasl?

2013-09-08 Thread Jeroen Geilman
On 09/02/2013 10:56 PM, Eliezer Croitoru wrote: Hey, I have a situation with a working postfix install which I am not sure how to implement. You're not sure how to implement... a working situation ? the main problem is that from time to time I get a rejected mail from a remote system and

sending mail using more then one smarthost\relayhost and sasl?

2013-09-02 Thread Eliezer Croitoru
Hey, I have a situation with a working postfix install which I am not sure how to implement. the main problem is that from time to time I get a rejected mail from a remote system and which I cannot do a thing about. the setup is like this: Local client(sasl) -(submission 587)Local POSTFIX the

  1   2   >