On 26.07.16 13:30, Kacper Kowalski wrote:
[quote]Hi,
I have issues with email notifications. I checked mailing list, found some tips and advises, but those are not working.
The problem is, that if I try to send test mail from backuppc user like this:
root < at > backup:/etc# sudo -u backuppc /usr/share/backuppc/bin/BackupPC_sendEmail -u kacper.s.kowalski < at > gmail.com <mailto:kacper.s.kowalski < at > gmail.com>
I can see in mail.log file, that my mail wasn't send, because of timing out (sometimes "Network unreachable" is the reason):
Jul 26 12:12:20 backup postfix/smtp[3496]: 133C643A41: to=<kacper.s.kowalski < at > gmail.com <mailto:kacper.s.kowalski < at > gmail.com>>, relay=none, delay=3347, delays=3256/0.02/90/0, dsn=4.4.1, status=deferred (connect to alt2.gmail-smtp-in.l.google.com http://alt2.gmail-smtp-in.l.google.com[64.233.189.26]:25: Connection timed out)
[/quote]Your own MTA (Postfix) has accepted test message and put it in mail queue. So, notifications are working.
[quote]I tried to change smtp port to 587 in master.cf http://master.cf file, but after restarting postfix service and sending test email, the 25 port is used, not 587 (in log file the ip is followed by ":25").
[/quote]It seems like you mixed up client and server ports. I don't think you should use submission port to send notifications - gmail requires authentication for MUAs.
I'm afraid, you can't get your own mail server up and running if you don't know how SMTP works.
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports.http://sdm.link/zohodev2dev
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/