Wietse Venema wrote: > Ranjan Maitra: > > Thanks, except that it does not send even when VPN is up. I get > > the same message and I can get it to send only when I change my > > relayhost back to the default.
What is your relayhost setting? > 2) the remote relayhost must only accept mail when the VPN is up. When the VPN is up verify that your relayhost setting is correct. The above sounds as if it is not. If it were me I would use 'nc' to connect to the same address and port as configured for relayhost and verify the SMTP header is being seen. It's all text. If you can't connect with 'nc' then the problem is the address or port. Upon connection you should get an SMTP banner. By the discussion thread I hope you are trying to connect to an address that is only available when the VPN is up. Such as a VPN private address for your mail relay that is not available when the VPN is down but is available when the VPN is up. For example many use 172.16.0.0/12 addresses for VPNs. For example. If so then if the mail relay host VPN address is 172.16.10.101 then connecting there should work only when the VPN is up but not when it is down. In which case, for example, this following would work only when the VPN is up. $ nc 172.16.10.101 25 220 mail.example.com ESMTP Postfix If you can't connect and get a banner then Postfix can't connect and get a banner. Bob