Re: delaying postfix until/unless VPN is up/connected

2020-03-30 Thread Tessa Plum
sorry just OT, my VPS has only IPv6 interface, can I deploy it as mail server? Thank you. Tessa Peter wrote: Actually it's an interface name (such as tun0), not an IP address:

Re: delaying postfix until/unless VPN is up/connected

2020-03-30 Thread Peter
On 31/03/20 5:42 pm, Bob Proulx wrote: The "$vpn" part is a variable was simply a placeholder for the IP address of your VPN connected relayhost. It would be an IP address like 93.184.216.34 but put in the IP address of your relay host that is only accessible when the VPN is up. iptables -A

Re: delaying postfix until/unless VPN is up/connected

2020-03-30 Thread Ranjan Maitra
On Mon, 30 Mar 2020 22:42:25 -0600 Bob Proulx wrote: > Ranjan Maitra wrote: > > Bastian Blank wrote: > > > I would just reject SMTP connections outgoing on your non-VPN interfaces. > > > | iptables -A OUTPUT -o $vpn -m tcp --dport 25 -j ACCEPT > > > | iptables -A OUTPUT -m tcp --dport 25 -j REJEC

Re: delaying postfix until/unless VPN is up/connected

2020-03-30 Thread Bob Proulx
Ranjan Maitra wrote: > Bastian Blank wrote: > > I would just reject SMTP connections outgoing on your non-VPN interfaces. > > | iptables -A OUTPUT -o $vpn -m tcp --dport 25 -j ACCEPT > > | iptables -A OUTPUT -m tcp --dport 25 -j REJECT > > So, I was trying this out: > > $ sudo iptables -A OUTPUT

Re: delaying postfix until/unless VPN is up/connected

2020-03-30 Thread Peter
On 31/03/20 2:19 am, Ranjan Maitra wrote: On Mon, 30 Mar 2020 13:11:42 +0200 Bastian Blank wrote: On Mon, Mar 23, 2020 at 01:04:44PM -0500, Ranjan Maitra wrote: So, I am wondering if I it is possible to have a setup whereby postfix is delayed unless/until VPN is up and running. If VPN is do

Re: delaying postfix until/unless VPN is up/connected

2020-03-30 Thread Ranjan Maitra
On Mon, 30 Mar 2020 13:11:42 +0200 Bastian Blank wrote: > On Mon, Mar 23, 2020 at 01:04:44PM -0500, Ranjan Maitra wrote: > > So, I am wondering if I it is possible to have a setup whereby postfix is > > delayed unless/until VPN is up and running. If VPN is down, then I would > > like postfix t

Re: Migrating Postfix Server to New IP Block and Reverse DNS Issues

2020-03-30 Thread Asai
I don't understand this. What does it mean to point traffic (from the internet? from the local network?) to a load balancer for LAN (from the LAN? to the LAN?) or WAN (from the WAN? to the WAN?) traffic. Postfix supports load balancers for receiving mail. Postfix does not support load balancer

Re: pflogsumm error.

2020-03-30 Thread @lbutlr
On 30 Mar 2020, at 15:53, Wietse Venema wrote: > Does the error change if reverse the file order? I put then in order {postscreen, delivery, mail} and also {delivery, postscreen, mail} and no difference, but all the logs are piped to sort before being redirected to the file that pflogsumm proce

Re: pflogsumm error.

2020-03-30 Thread Wietse Venema
Does the error change if reverse the file order? Wietse

pflogsumm error.

2020-03-30 Thread @lbutlr
When running pflogsumm I am getting many error like this: Use of uninitialized value $domain in string eq at /usr/local/bin/pflogsumm line 1546, <> line 283375. Use of uninitialized value $domain in substitution (s///) at /usr/local/bin/pflogsumm line 1552, <> line 283375. # awk '{if(NR==283375

Re: Tracking email status - Bounced, Deferred, Over Quota, Delivered

2020-03-30 Thread Viktor Dukhovni
On Mon, Mar 30, 2020 at 11:18:47AM -0700, Owais Khan wrote: > We are using postfix to relay emails to mail.google.com using our Gmail > email account. What happens is that sometimes email(s) to some of the users > never reaches. So, we got couple of questions. > > 1) If postfix can't send email t

Tracking email status - Bounced, Deferred, Over Quota, Delivered

2020-03-30 Thread Owais Khan
Hello, We are using postfix to relay emails to mail.google.com using our Gmail email account. What happens is that sometimes email(s) to some of the users never reaches. So, we got couple of questions. 1) If postfix can't send email to one email address in the list then it will stop sending rest?

Re: modify "User unknown" message

2020-03-30 Thread Matus UHLAR - fantomas
On 3/30/2020 8:18 AM, Matus UHLAR - fantomas wrote: * Matus UHLAR: remote senders don't understand the message too often. On 30.03.20 14:55, Ralph Seichter wrote: Using "show_user_unknown_table_name = no" will hide the table name. That might reduce some of the confusion. I'd prefer to add s

Re: modify "User unknown" message

2020-03-30 Thread Noel Jones
On 3/30/2020 8:18 AM, Matus UHLAR - fantomas wrote: * Matus UHLAR: remote senders don't understand the message too often. On 30.03.20 14:55, Ralph Seichter wrote: Using "show_user_unknown_table_name = no" will hide the table name. That might reduce some of the confusion. I'd prefer to add s

Re: Migrating Postfix Server to New IP Block and Reverse DNS Issues

2020-03-30 Thread Wietse Venema
Asai: > > If you can't do this without losing the remote SMTP client IP > > address, your options are: > > > > - Install HAproxy on the "router", configure HaProxy to forward > >mail to Postfix, and configure Postfix to use > >"smtpd_upstream_proxy_protocol = haproxy". > > > >With this,

Re: Migrating Postfix Server to New IP Block and Reverse DNS Issues

2020-03-30 Thread Asai
If you can't do this without losing the remote SMTP client IP address, your options are: - Install HAproxy on the "router", configure HaProxy to forward mail to Postfix, and configure Postfix to use "smtpd_upstream_proxy_protocol = haproxy". With this, Postfix CANNOT receive direct SMTP

Re: Migrating Postfix Server to New IP Block and Reverse DNS Issues

2020-03-30 Thread Wietse Venema
Asai: > Greetings, > > We're in the process of migrating our server to a new IP address block > but we're running into issues where reverse DNS checks are causing some > problems.? I will outline in brief here: > > * We're moving our email server to a new router with a new IP block > * In o

Migrating Postfix Server to New IP Block and Reverse DNS Issues

2020-03-30 Thread Asai
Greetings, We're in the process of migrating our server to a new IP address block but we're running into issues where reverse DNS checks are causing some problems.  I will outline in brief here: * We're moving our email server to a new router with a new IP block * In order to do this in a g

Re: delaying postfix until/unless VPN is up/connected

2020-03-30 Thread Ranjan Maitra
On Mon, 30 Mar 2020 13:11:42 +0200 Bastian Blank wrote: > On Mon, Mar 23, 2020 at 01:04:44PM -0500, Ranjan Maitra wrote: > > So, I am wondering if I it is possible to have a setup whereby postfix is > > delayed unless/until VPN is up and running. If VPN is down, then I would > > like postfix t

Re: modify "User unknown" message

2020-03-30 Thread Matus UHLAR - fantomas
* Matus UHLAR: remote senders don't understand the message too often. On 30.03.20 14:55, Ralph Seichter wrote: Using "show_user_unknown_table_name = no" will hide the table name. That might reduce some of the confusion. I'd prefer to add short translation of the default message. yes, the tab

Re: modify "User unknown" message

2020-03-30 Thread Ralph Seichter
* Matus UHLAR: > remote senders don't understand the message too often. Using "show_user_unknown_table_name = no" will hide the table name. That might reduce some of the confusion. -Ralph

Re: delaying postfix until/unless VPN is up/connected

2020-03-30 Thread Bastian Blank
On Mon, Mar 23, 2020 at 01:04:44PM -0500, Ranjan Maitra wrote: > So, I am wondering if I it is possible to have a setup whereby postfix is > delayed unless/until VPN is up and running. If VPN is down, then I would like > postfix to be delayed until such time as it comes up. If it is possible, how

modify "User unknown" message

2020-03-30 Thread Matus UHLAR - fantomas
Hello, can anyone advise me, what's the easiest way to modify error message: "User unknown in local recipient table" if we use: - virtual aliases - aliases - password file? remote senders don't understand the message too often. Thanks -- Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fa