postfix: Undelivered Mail Returned to Sender error

2020-07-01 Thread Ranjan Maitra
Hi, I am using postfix to send e-mail. My home machine is called xxx.sub.example.com (I am user with rm11) and my work email address is r...@example.com. My ISP at home is not through my employer but I use VPN through that. I use localhost as my smtp server and my e-mail address as the sendmail

Re: Postfix behind NAT -> failover IP -> wrong HELO

2020-07-01 Thread Peter
On 1/07/20 11:20 am, Bill Cole wrote: Can't you just fix the DNS? Use a HELO name that resolves to both IPs and give both IPs PTR records that point back to the name you use. This won't work for FCRDNS properly. What happens is the lookup on the A record will randomly return either one or the

Re: Postfix behind NAT -> failover IP -> wrong HELO

2020-07-01 Thread Curtis Maurand
easier than that.  use linux heartbeat on the two postfix service. the failover happens within seconds.  use the unison file system to keep the spool folders and other necessary folders needed to pick up on the failover machine and when the primary fails, whatever services that need to be runni

Re: content_filter with external script and virtual_alias_maps

2020-07-01 Thread Stats Student
Thank you. Re: bouncing emails - makes sense, won't do. As for your other suggestion, I am sorry I didn't follow what you recommended specifically. I posted my configuration, if you could take a look. https://dpaste.org/WdPx On Wed, Jul 1, 2020 at 8:31 AM Wietse Venema wrote: > > Stats Student:

Re: Log entry timestamp

2020-07-01 Thread Wietse Venema
Viktor Dukhovni: > On Wed, Jul 01, 2020 at 06:04:50PM +, Antonio Leding wrote: > > > Thanks Wietse - rsyslog template it is then... > > Bear in mind that on Linux systems with systemd-journald, even if you > ultimately forward messages to rsyslog for storage, the logging > subsystem is substa

Re: Log entry timestamp

2020-07-01 Thread Viktor Dukhovni
On Wed, Jul 01, 2020 at 06:04:50PM +, Antonio Leding wrote: > Thanks Wietse - rsyslog template it is then... Bear in mind that on Linux systems with systemd-journald, even if you ultimately forward messages to rsyslog for storage, the logging subsystem is substantially deficient, and you SHOU

Re: Postfix behind NAT -> failover IP -> wrong HELO

2020-07-01 Thread Istvan Prosinger
On 7/1/20 9:02 PM, Bill Cole wrote: On 1 Jul 2020, at 12:29, Istvan Prosinger wrote: Fix the DNS? All reverse DNS should have an A record pointed back in the DNS zone. This would be a real mess It is quite common for one name to have multiple A (and/or ) records and for more than one

Re: Postfix behind NAT -> failover IP -> wrong HELO

2020-07-01 Thread Bill Cole
On 1 Jul 2020, at 12:29, Istvan Prosinger wrote: Fix the DNS? All reverse DNS should have an A record pointed back in the DNS zone. This would be a real mess It is quite common for one name to have multiple A (and/or ) records and for more than one PTR record to point to the same name. Th

Re: Log entry timestamp

2020-07-01 Thread Antonio Leding
Thanks Wietse - rsyslog template it is then... > On Jun 30, 2020, at 3:43 PM, Wietse Venema wrote: > > Antonio Leding: >> Hello Postfix community, >> >> Does anyone know if it is possible to configure, within Postfix, >> the timestamp used for log messages? >> >> I know I can setup a template

Re: Prevent from falsification

2020-07-01 Thread @lbutlr
On 01 Jul 2020, at 10:28, SysAdmin EM wrote: > The user is using as From Header "gmail.com" which is very wrong. There is nothing "malformed" about 'from=' You can restrict your server to sending only mail from that matches the user login, but I don't do that so I don't have that configuration

Re: Postfix behind NAT -> failover IP -> wrong HELO

2020-07-01 Thread Wietse Venema
Istvan Prosinger: > > Assuming that Postfix runs on the firewall, otherwise you will need > > to add telepathic vision to Postfix and also set smtp_proxy_address > > to avoid "mail loops back to myself" errors. > > > > host1_mynetworks = > > output from "postconf mynetworks" with external

Re: Postfix behind NAT -> failover IP -> wrong HELO

2020-07-01 Thread Istvan Prosinger
On 7/1/20 12:40 AM, Wietse Venema wrote: Istvan Prosinger: On 6/30/20 10:34 PM, Wietse Venema wrote: Istvan Prosinger: On 6/30/20 9:49 PM, Wietse Venema wrote: Istvan Prosinger: Hi, I hope this letter finds you well, I have Postfix behind NAT, and added one failover IP to the main rou

Re: Postfix behind NAT -> failover IP -> wrong HELO

2020-07-01 Thread Istvan Prosinger
On 7/1/20 1:20 AM, Bill Cole wrote: On 30 Jun 2020, at 15:40, Istvan Prosinger wrote: Hi, I hope this letter finds you well, I have Postfix behind NAT, and added one failover IP to the main router. I wanted to "get by cheaply" by just doing something like iptbales -t nat -I POSTROUTING -p

Prevent from falsification

2020-07-01 Thread SysAdmin EM
Hello, I am working to minimize malformed mail that can be sent from my servers. Example: postfix-out/cleanup[1191]: BE1DF49336: warning: header From: "Juan Bautista PITTIER" from l ocalhost[127.0.0.1]; from= to= proto=ESMTP helo= The user is using as From Header "gmail.com" which is very wron

Re: Move queue to another Server, it's possible?

2020-07-01 Thread SysAdmin EM
Thans for the reply. I think he explained me wrong. I already have this configuration, but I have some mails in the "hold" state of Hotmail assigned to IP number 1 and number 2, when configuring a new interface, let's call interface number 5, it is possible to move the mails assigned to interface

Re: Move queue to another Server, it's possible?

2020-07-01 Thread Wietse Venema
SysAdmin EM: > I have another question, can I send the emails with another IP? tell > postfix to take it out through another interface? the mails I assign an > attribute "hold" can I tell postfix to come out from another interface? > > Example on server number "1" I have 5 IPs, I create a new inte

Re: content_filter with external script and virtual_alias_maps

2020-07-01 Thread Wietse Venema
Stats Student: > Hi, as a follow up to this question - > > 1) in addition to sending the messages to a script, is there a way to > store the messages in a real mailstore ( Maildir ) ? Add a recipient with virtual_alias_maps, sender_bcc_maps, recipient_bcc_maps, etc., and use the existing local(8)

Re: Move queue to another Server, it's possible?

2020-07-01 Thread SysAdmin EM
I have another question, can I send the emails with another IP? tell postfix to take it out through another interface? the mails I assign an attribute "hold" can I tell postfix to come out from another interface? Example on server number "1" I have 5 IPs, I create a new interface, can I send the q

Re: Move queue to another Server, it's possible?

2020-07-01 Thread Wietse Venema
SysAdmin EM: > Hello, > I am configuring a backup server, which works through round-robin, it is a > server that is only for Hosting, not commercial emails, the idea is to use > it as a backup, is it possible to move the queue between servers? does it > matter that there are different IP addresses?

Move queue to another Server, it's possible?

2020-07-01 Thread SysAdmin EM
Hello, I am configuring a backup server, which works through round-robin, it is a server that is only for Hosting, not commercial emails, the idea is to use it as a backup, is it possible to move the queue between servers? does it matter that there are different IP addresses? Regards,

Re: content_filter with external script and virtual_alias_maps

2020-07-01 Thread Stats Student
Hi, as a follow up to this question - 1) in addition to sending the messages to a script, is there a way to store the messages in a real mailstore ( Maildir ) ? 2) can I return something from the script that would cause the message to get rejected, maybe even send a message back with an error code