Bacula-users

Re: [Bacula-users] bsmtp failing to connect to mail server

2015-08-09 14:42:47
Subject: Re: [Bacula-users] bsmtp failing to connect to mail server
From: Dimitri Maziuk <dmaziuk AT bmrb.wisc DOT edu>
To: bacula-users AT lists.sourceforge DOT net
Date: Sun, 9 Aug 2015 13:37:53 -0500
On 2015-08-08 14:23, Jerry Lowry wrote:
> Heitor,  Sorry for not saying this in the original text.  It does the
> same thing when I specify 'localhost'.
>
> I don't really need 'tls' that is just what gmail is looking for when I
> try to use them as the sending mail server.

Send-only postfix setup that also accepts mail on 127.0.0.1:

  /etc/postfix/main.cf:

myorigin = $mydomain
inet_interfaces = localhost
inet_protocols = ipv4
mydestination =
relayhost = $mydomain
local_transport = error:local mail delivery is disabled

-- change myorigin and relayhost as appropriate. Plus,

  /etc/postfix/master.cf:

#local     unix  -       n       n       -       -       local

(i.e. the "local" line commented out).

Make sure iptables isn't blocking port 25 on localhost.

To test:

telnet localhost 25

-- if you get "connected" and 220 code from postfix you should be good 
to go. Note that sending mail from command line is not a useful test 
since it doesn't necessarily work the same way. It's calling the 
sendmail binary directly instead of talking to the server on port 25.

And then there's gmail. It delivers some messages to "all mail" instead 
of inbox, messages whose From and To addresses are the same just vanish, 
and so on. So check the postfix log after running a test job: it may 
well be there's nothing wrong with your bsmtp or postfix config.

Dima

------------------------------------------------------------------------------
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users