delaying postfix until/unless VPN is up/connected

2020-03-23 Thread Ranjan Maitra
Hi, I am using postfix to deliver my work mail from a remote location. This works fine when I am on VPN (the postfix traffic goes through VPN then). However, it gets identified as spam when VPN is not up while sending the e-mail. Since most people do not routinely check their spam folders espec

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

2020-03-23 Thread Ranjan Maitra
On Mon, 23 Mar 2020 15:05:17 -0400 (EDT) Wietse Venema wrote: > >Ranjan Maitra: > > 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 u

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

2020-03-23 Thread Ranjan Maitra
On Mon, 23 Mar 2020 16:22:40 -0400 (EDT) Wietse Venema wrote: > Ranjan Maitra: > > 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 unti

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

2020-03-23 Thread Ranjan Maitra
On Mon, 23 Mar 2020 18:46:11 -0600 Bob Proulx wrote: > Scott Kitterman wrote: > > On Monday, March 23, 2020 7:47:25 PM EDT Bob Proulx wrote: > > But don't forget I also said: > > > > I know you said you are running Fedora but I imagine that Fedora > > > has something like this but in a different

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

2020-03-24 Thread Ranjan Maitra
On Tue, 24 Mar 2020 08:49:26 -0400 (EDT) Wietse Venema wrote: > Ranjan Maitra: > > However, I am a little confused as to what I should do. It appears > > to me that an example such as here: > > https://blog.skbali.com/2019/03/start-a-script-on-boot-using-systemd/ > >

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

2020-03-24 Thread Ranjan Maitra
On Tue, 24 Mar 2020 16:51:38 +0100 Jaroslaw Rafa wrote: > Dnia 24.03.2020 o godz. 08:49:26 Wietse Venema pisze: > > Ranjan Maitra: > > > However, I am a little confused as to what I should do. It appears > > > to me that an example such as here: > > > htt

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

2020-03-25 Thread Ranjan Maitra
On Wed, 25 Mar 2020 10:31:11 -0400 (EDT) Wietse Venema wrote: > Ranjan Maitra: > > So, I have tried to set the relayhost to a specific mailhub address but > > have not been able to make this work. I get a message then which reads like: > > > > delivery temporarily

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 &

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 &

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 > > > | ipt

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

2020-03-31 Thread Ranjan Maitra
On Tue, 31 Mar 2020 19:41:58 +1300 Peter wrote: > 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 hos

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

2020-03-31 Thread Ranjan Maitra
On Wed, 1 Apr 2020 09:51:31 +1300 Peter wrote: > On 1/04/20 1:42 am, Ranjan Maitra wrote: > > On Tue, 31 Mar 2020 19:41:58 +1300 Peter wrote: > > > >> On 31/03/20 5:42 pm, Bob Proulx wrote: > >>> The "$vpn" part is a variable was simply a pl

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

2020-04-16 Thread Ranjan Maitra
On Mon, 23 Mar 2020 17:19:42 -0400 (EDT) Wietse Venema wrote: > Corrected code follows (missing do/done). > > Save to file, chmod +x name-of-file, don't run this script from > cron. > > It needs to be started at boot time, or before you make a VPN > connection. > > #!/bin/sh > > while : > do >

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

2020-04-17 Thread Ranjan Maitra
On Fri, 17 Apr 2020 08:05:28 + Gregory Heytings wrote: > > Ranjan Maitra: > > > >> Wietse Venema: > >> > >> Corrected code follows (missing do/done). > >> > >> Save to file, chmod +x name-of-file, don't run this script from cron

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

2020-04-17 Thread Ranjan Maitra
On Fri, 17 Apr 2020 15:21:49 +0200 Jan Ceuleers wrote: > On 17/04/2020 15:08, Ranjan Maitra wrote: > > Btw, for me, when ifconfig is DOWN, I do not get a down. > > ifconfig -a fixes that. > Sorry, but not for me: When down: $ifconfig -a | egrep 'UP|DOWN' xxx

Re: Postfix "IPv6-only" - experience/recommendation question

2020-05-12 Thread Ranjan Maitra
On Tue, 12 May 2020 08:14:21 -0600 "@lbutlr" wrote: > On 11 May 2020, at 04:24, Jaroslaw Rafa wrote: > > Someone told me… that Google is more likely to classify email from small > > senders as spam if they are sent via IPv6, and less likely if they are sent > > via IPv4. > > Short of Google pu

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

strange issue with postfix

2020-10-01 Thread Ranjan Maitra
Hi, I have an issue that I can not resolve at my work environment. When I use commandline mail, my e-mail gets delivered. However, when I use a mailer (like sylpheed) to use localhost, it does not get delivered. I have SMTP port set to the default, and this same setup works fine when I send e-

Re: strange issue with postfix

2020-10-01 Thread Ranjan Maitra
me (the same machine). Many thanks, Ranjan On Thu, 1 Oct 2020 22:04:26 +0300 IL Ka wrote: > Hi. > I'd start with checking your logs (i.e. "/var/log/maillog") > > On Thu, Oct 1, 2020 at 10:01 PM Ranjan Maitra wrote: > > > Hi, > > > > I hav

Re: strange issue with postfix

2020-10-01 Thread Ranjan Maitra
On Thu, 1 Oct 2020 15:39:55 -0400 "Demi M. Obenour" wrote: > On 2020-10-01 15:18, Ranjan Maitra wrote: > > Thanks, very much. So when I hit "Send" on sylpheed, it goes on a tailspin, > > and says: Connecting to SMTP server: localhost > > > > Look

Re: strange issue with postfix

2020-10-02 Thread Ranjan Maitra
his exact issue and just couldn't wrap my head around > what was wrong, this solved things quite nicely. > > /T > > On 2020-10-02 00:00, Bob Proulx wrote: > > Ranjan Maitra wrote: > > > > > Oct  1 14:08:00 localhost postfix/smtpd[4142479]: fatal: i

Using postfix with 2FA on Office 365

2020-10-03 Thread Ranjan Maitra
Hi, I am able to write a python script to access Office365's REST API with 2FA integrated with OKTA (with access tokens, etc). Is it possible to use postfix to use this for me? I have been lost on this for a while, but recent developments on mutt's gitlab seems to make it possible so I thought

use postfix over ssh

2020-10-10 Thread Ranjan Maitra
Hi, I am not sure that this has a(n easy) solution or is even possible, but I thought that I would find out from experts because it has been difficult to search for the answer. I have postfix running on both my home and office machines. I am able to send e-mail from my office machine (that use

Re: use postfix over ssh

2020-10-10 Thread Ranjan Maitra
On Sat, 10 Oct 2020 23:36:28 +0200 Jaroslaw Rafa wrote: > Dnia 10.10.2020 o godz. 16:04:30 Ranjan Maitra pisze: > > > > I have postfix running on both my home and office machines. I am able to > > send e-mail from my office machine (that uses my employer's mailhub, etc)

Re: use postfix over ssh

2020-10-10 Thread Ranjan Maitra
Hi Viktor, Thanks for your response! On Sat, 10 Oct 2020 19:31:09 -0400 Viktor Dukhovni wrote: > On Sat, Oct 10, 2020 at 04:04:30PM -0500, Ranjan Maitra wrote: > > > I have postfix running on both my home and office machines. I am able > > to send e-mail from my office mac

Re: use postfix over ssh

2020-10-12 Thread Ranjan Maitra
My apologies: were there any suggestions regarding what i should do? Thanks, Ranjan On Sat, 10 Oct 2020 20:07:33 -0500 Ranjan Maitra wrote: > Hi Viktor, > > Thanks for your response! > > On Sat, 10 Oct 2020 19:31:09 -0400 Viktor Dukhovni > wrote: > > > On Sat,

Re: use postfix over ssh

2020-10-12 Thread Ranjan Maitra
On Mon, 12 Oct 2020 21:19:38 -0400 Viktor Dukhovni wrote: > On Mon, Oct 12, 2020 at 08:09:45PM -0500, Ranjan Maitra wrote: > > > My apologies: were there any suggestions regarding what i should do? > > Find out more about the VPN. Nobody on this list can do that. Does