Welcome! » Log In » Create A New Profile

Postfix problems

Posted by Anonymous 
Postfix problems
July 26, 2016 03:32AM
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 ([email]kacper.s.kowalski < at > gmail.com[/email])

I can see in mail.log file, that my mail wasn&#39;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 ([email]kacper.s.kowalski < at > gmail.com[/email])>, relay=none, delay=3347, delays=3256/0.02/90/0, dsn=4.4.1, status=deferred (connect to [url=http://alt2.gmail-smtp-in.l.google.com]alt2.gmail-smtp-in.l.google.com[/url][64.233.189.26]:25: Connection timed out)

I tried to change smtp port to 587 in [url=http://master.cf]master.cf[/url] 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").

What can I do to start notifications working?

K.Kowalski
Postfix problems
July 26, 2016 04:33AM
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/
Postfix problems
July 26, 2016 04:44AM
On 26/07/2016 20: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 ([email]kacper.s.kowalski < at > gmail.com[/email])

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 ([email]kacper.s.kowalski < at > gmail.com[/email])>, relay=none, delay=3347, delays=3256/0.02/90/0, dsn=4.4.1, status=deferred (connect to [url=http://alt2.gmail-smtp-in.l.google.com]alt2.gmail-smtp-in.l.google.com[/url][64.233.189.26]:25: Connection timed out)

I tried to change smtp port to 587 in [url=http://master.cf]master.cf[/url] 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").

What can I do to start notifications working?

[/quote] You might find it easier to configure your system to send all mail to a smarthost instead of trying to deliver directly. You may need user/pass authentication for your ISP mail server, or not. BackupPC itself is working correctly, instead you should look at the configuration of postfix and perhaps discuss with the postfix list on how to best resolve the issue. I would help further, but unfortunately I know nothing at all of postfix. I tend to use either nullmailer or else exim which debian provides some simple configuration scripts for it.

Please consult your postfix docs, and/or the postfix mailing list for further help.

Regards,
Adam
Sorry, only registered users may post in this forum.

Click here to login