-----Original Message-----
From: Les Mikesell [mailto:lesmikes...@gmail.com] 
Sent: den 12 mars 2012 13:33
To: sorin.s...@orgfarm.uu.se; General list for user discussion, questions and 
support
Subject: Re: [BackupPC-users] Alert mails from BPC on CentOS 6 works, but not 
from CentOS 5

It should hand things to sendmail for delivery.  C5 should have a real
sendmail program configured to accept only from localhost by default.
 Do you see anything in /var/log/maillog to indicate what happens to
them?  If they go to another host, you may have to configure the
sending machine to use a domain name that can be found in DNS or it
may be rejected.  C6 should have postfix by default, but that provides
a compatible-enough sendmail program.
========================

You were spot on Les. Thanks.

I looked at the /var/log/maillog and found a problem with the domain name, see 
excerpt below. I'm not quite sure where it picked up localhost.localdomain from 
and where to change it to the proper name. Does it look in /etc/hosts or 
/etc/BackupPC/config.pl? And FWIW, I can't find an /etc/sendmail.cf for some 
reason. Has this been removed and set somewhere else maybe?

Further, I discovered a problem with the installdir-variable on this particular 
machine. It was set to /usr. Checking the working email BPC-server I discovered 
that it should be /usr/share/BackupPC and changed it accordingly and then 
restarted the BPC daemon. In fact, this errant variable might be why restores 
have failed as it can't find the right scripts to run.

>, relay=backuppc@localhost
Mar 12 14:16:53 mach021 sendmail[27054]: q2CDGrJQ027054: tcpwrappers 
(localhost.localdomain, 127.0.0.1) rejection
Mar 12 14:16:53 mach021 sendmail[27045]: q2CDGrM9027045: 
to=sorin.s...@orgfarm.uu.se, ctladdr=sorin.s...@orgfarm.uu.se (150/150), 
delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30195, relay=[127.0.0.1] 
[127.0.0.1], dsn=5.0.0, stat=Service unavailable
Mar 12 14:16:53 mach021 sendmail[27045]: q2CDGrM9027045: q2CDGrMA027045: DSN: 
Service unavailable
Mar 12 14:16:53 mach021 sendmail[27045]: q2CDGrMA027045: 
to=sorin.s...@orgfarm.uu.se, delay=00:00:00, xdelay=00:00:00, mailer=relay, 
pri=31219, relay=[127.0.0.1], dsn=5.0.0, stat=Service unavailable
Mar 12 14:16:53 mach021 sendmail[27045]: q2CDGrMA027045: q2CDGrMB027045: return 
to sender: Service unavailable
Mar 12 14:16:53 mach021 sendmail[27045]: q2CDGrMB027045: to=postmaster, 
delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=32243, relay=[127.0.0.1], 
dsn=5.0.0, stat=Service unavailable
Mar 12 14:16:53 mach021 sendmail[27045]: q2CDGrMA027045: Losing 
./qfq2CDGrMA027045: savemail panic
Mar 12 14:16:53 mach021 sendmail[27045]: q2CDGrMA027045: SYSERR(backuppc): 
savemail: cannot save rejected email anywhere
root@mach021 ~/ [0]# tail /var/log/maillog
Mar 12 14:16:53 mach021 sendmail[27045]: q2CDGrM9027045: 
Authentication-Warning: mach021.orgfarm.uu.se: backuppc set sender to 
sorin.s...@orgfarm.uu.se using -f
Mar 12 14:16:53 mach021 sendmail[27045]: q2CDGrM9027045: 
from=sorin.s...@orgfarm.uu.se, size=195, class=0, nrcpts=1, 
msgid=<201203121316.q2cdgrm9027...@mach021.orgfarm.uu.se

Anyway, as Google is my very good friend, I found this helpful little bit of 
info; << 
http://www.adamsdesk.com/be/archives/2005/09/09/sendmail-dsn-service-unavailable/>>.

The specific info I used from this page was

1. Removed any reference to localhost.domain and/or localhost in my /etc/hosts 
file.
2. Added "ALL: 127.0.0.1" in /etc/hosts.allow.
3. And for good measure (not necessarily required) added "sendmail: localhost" 
in /etc/hosts.allow.

I then tested the mail function using the email from the BPC documentation;
# su -s /bin/bash - backuppc
# /usr/bin/BackupPC_sendEmail -u sorin.s...@orgfarm.uu.se

And voilá, I got a mail from the BPC Genie in my mailbox. So, solved. 8-D

Thanks for the hint Les, it set me on right on track very fast. You and this 
list rocks!

-- 
/Sorin

Attachment: smime.p7s
Description: S/MIME cryptographic signature

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Reply via email to