SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
BPCNightly- BPCsendEmail- "recipient address not accept
Author Message
Post BPCNightly- BPCsendEmail- "recipient address not accept 
I have installed BackupPC 3.2.1 on a "DNS-323" embedded ARM NAS, (running GNU BSD Net). Things seem to work ok, but I am getting this error message in the log:

2011-11-01 01:01:46 BackupPC_nightly now running BackupPC_sendEmail
2011-11-01 01:01:47 Finished admin1 (BackupPC_nightly 128 255)
2011-11-01 01:01:54 admin : msmtp: no recipients found.
admin : msmtp: recipient address John not accepted by the server
admin : msmtp: server message: 553-5.1.2 We weren't able to find the recipient domain. Please check for any spelling errors, and make sure you didn't enter any spaces, periods, punctuation after the recipient's email address. p14sm1522712faf.20
2011-11-02 01:01:56 admin : msmtp: could not send mail (account default from /home/ftp/.msmtprc)
2011-11-02 01:01:58 admin : msmtp: recipient address John not accepted by the server

I don't understand where it's taking the address "John" from.
(BTW, I notice that BackupPC_nightly is still of version 3.1.0, 2007)

TIA - MaryG

View user's profile Send private message
Post BPCNightly- BPCsendEmail- "recipient address not accept 
On 11/02 02:10 , MaryG wrote:
admin : msmtp: recipient address John not accepted by the server

I don't understand where it's taking the address "John" from.

msmtp is a mail transport agent (MTA), like sendmail or postfix.
http://msmtp.sourceforge.net/

Take a look at its configuration (I don't know if it uses /etc/aliases or
not); it's probably set to send all mail to 'John', and that setting needs
to be configured to your administrator's e-mail address.

--
Carl Soderstrom
Systems Administrator
Real-Time Enterprises
www.real-time.com

------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
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/

Post  
How can I debug this? It happens when BackupPC_nightly tries to send e-mail at 1:00 am.

The only place I have "John" is in config.pl in: $Conf{RsyncdUserName} = 'John'; but this is the rsyncd authentication user name, and it's not supposed to interfere with BackupPC_sendEmail?

Note: in BackupPC_sendEmail, I have added "-t" in sub SendMail at line 387, namely:
if ( !open(MAIL, "|$Conf{SendmailPath} -t $from") ) {

printf("Can't run sendmail ($Conf{SendmailPath}): $!\n");
return;
}

"-t" makes msmtp pick up the destination address from the e-mail headers.

Note that this works fine: / # msmtp -d -t < /mnt/HD_a2/Temp/mailfile
Where mailfile is:
To: user_to@domain1.com
From: user_from@domain2.com
Subject: Mail test
This is a message
EOF

msmtp sends the e-mail to "user_to@domain1.com", which it picked up from the "To:" header.

View user's profile Send private message
Post BPCNightly- BPCsendEmail- "recipient address not accept 
MaryG wrote:
How can I debug this? It happens when BackupPC_nightly tries to send e-mail at 1:00 am.

What does your host entry for that user show. They're supposed to have
an email address as well, for notifications to the user. For example,
my home entry shows:

cat hosts

desktop.dd.inet 0 my.email.address.here

Doug


--
Ben Franklin quote:

"Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety."


------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
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/

Post  
Doug Lytle wrote: "What does your host entry for that user show. They're supposed to have
an email address as well, for notifications to the user. For example ...[etc]"

Doug: you were right on. This was the problem. My hosts file had "John" as the user, not john@domain1.com. I replaced it and everything works fine.
By the way, this seems like a "bug" in the documentation. Nowhere does it mention that the "user" entry has to be the user's e-mail, and not just the username.
(I think I saw somewhere that using apache utils (I am using lighttpd) you can let it infer the user's e-mail from the username - is it true?)

Many thanks

MaryG

View user's profile Send private message
Post BPCNightly- BPCsendEmail- "recipient address not accept 
On Mon, Nov 7, 2011 at 11:24 AM, MaryG <backuppc-forum < at > backupcentral.com> wrote:
Doug Lytle wrote: "What does your host entry for that user show. They're supposed to have
an email address as well, for notifications to the user. For example ...[etc]"

Doug: you were right on. This was the problem. My hosts file had "John" as the user, not john < at > domain1.com. I replaced it and everything works fine.
By the way, this seems like a "bug" in the documentation. Nowhere does it mention that the "user" entry has to be the user's e-mail, and not just the username.
(I think I saw somewhere that using apache utils (I am using lighttpd) you can let it infer the user's e-mail from the username - is it true?)


Unix/Linux servers traditionally use sendmail, which is infinitely
configurable. It would default to taking a user name as a local user
on the machine and delivering on the local mailbox for that user, or
following an alias or forwarding directive for that user if he prefers
it to be delivered elsewhere.

--
Les Mikesell
lesmikesell < at > gmail.com

------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
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/

Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB