Bacula-users

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

2015-08-12 00:40:35
Subject: Re: [Bacula-users] bsmtp failing to connect to mail server
From: Jerry Lowry <michaiah2007 AT gmail DOT com>
To: Dimitri Maziuk <dmaziuk AT bmrb.wisc DOT edu>
Date: Tue, 11 Aug 2015 21:38:45 -0700
Thank you all for the pointers and information regarding postfix and google mail.  I have not determined which way I am going to proceed yet.  To many other fires, which makes me check on the backups rather than check the email.

Kind regards,

jerry

On Sun, Aug 9, 2015 at 11:37 AM, Dimitri Maziuk <dmaziuk AT bmrb.wisc DOT edu> wrote:
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

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