If you don't want change/configure postfix - I may suggest to use swaks. It's a perl script which has a lot of functionality. I'm using the following command with nagios without any problem
/usr/bin/printf "%b" "$MESSAGE\n" | /usr/bin/swaks -4 --server smtp.googlemail.com:587 --from $USER3$ --to $CONTACTEMAIL$ -tls --auth PLAIN --auth-user $USER3$ --auth-password $USER4$ --h-Subject "$SUBJ" --body - --hide-all On Wed, Aug 12, 2015 at 7:38 AM, Jerry Lowry <michaiah2...@gmail.com> wrote: > 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 <dmaz...@bmrb.wisc.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@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/bacula-users >> > > > > ------------------------------------------------------------------------------ > > _______________________________________________ > Bacula-users mailing list > Bacula-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bacula-users > >
------------------------------------------------------------------------------
_______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users