Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

using backuppc application to send an email notification to internet

Status
Not open for further replies.

ady2012

MIS
Jun 6, 2010
108
US
I have installed and configured postfix and used port 587 as smtp port.
And I want to configure Backuppc to send an email as email notification to my internet email.
Part of config.pl from /etc/backuppc/
###########################################################################
# Email reminders, status and messages
# (can be overridden in the per-PC config.pl)
###########################################################################
#
# Full path to the sendmail command. Security caution: normal users
# should not allowed to write to this file or directory.
#
$Conf{SendmailPath} = '/usr/sbin/postfix';

#
# Minimum period between consecutive emails to a single user.
# This tries to keep annoying email to users to a reasonable
# level. Email checks are done nightly, so this number is effectively
# rounded up (ie: 2.5 means a user will never receive email more
# than once every 3 days).
#
$Conf{EMailNotifyMinDays} = '2.5';

#
# Name to use as the "from" name for email. Depending upon your mail
# handler this is either a plain name (eg: "admin") or a fully-qualified
# name (eg: "admin@mydomain.com").
#
$Conf{EMailFromUserName} = 'backuppc@example.com';

#
# Destination address to an administrative user who will receive a
# nightly email with warnings and errors. If there are no warnings
# or errors then no email will be sent. Depending upon your mail
# handler this is either a plain name (eg: "admin") or a fully-qualified
# name (eg: "admin@mydomain.com").
#
$Conf{EMailAdminUserName} = 'me@example.com';


# Destination domain name for email sent to users. By default
# this is empty, meaning email is sent to plain, unqualified
# addresses. Otherwise, set it to the destintation domain, eg:
#
# $Cong{EMailUserDestDomain} = '@mydomain.com';
#
# With this setting user email will be set to 'user@mydomain.com'.
#
$Conf{EMailUserDestDomain} = '@example.com';

#
# This subject and message is sent to a user if their PC has never been
# backed up.
#
# These values are language-dependent. The default versions can be
# found in the language file (eg: lib/BackupPC/Lang/en.pm). If you
# need to change the message, copy it here and edit it, eg:
#
# $Conf{EMailNoBackupEverMesg} = <<'EOF';
# To: $user$domain
# cc:
# Subject: $subj
#
# Dear $userName,
#
# This is a site-specific email message.
# EOF
#
$Conf{EMailNoBackupEverSubj} = undef;
$Conf{EMailNoBackupEverMesg} = undef;

# How old the most recent backup has to be before notifying user.
# When there have been no backups in this number of days the user
# is sent an email.
#
$Conf{EMailNotifyOldBackupDays} = '7';

#
# This subject and message is sent to a user if their PC has not recently
# been backed up (ie: more than $Conf{EMailNotifyOldBackupDays} days ago).
#
# These values are language-dependent. The default versions can be
# found in the language file (eg: lib/BackupPC/Lang/en.pm). If you
# need to change the message, copy it here and edit it, eg:
#
# $Conf{EMailNoBackupRecentMesg} = <<'EOF';
# To: $user$domain
# cc:
# Subject: $subj
#
# Dear $userName,
#
# This is a site-specific email message.
# EOF
#
$Conf{EMailNoBackupRecentSubj} = undef;
$Conf{EMailNoBackupRecentMesg} = undef;

Any suggestion to configure an email password on this config.pl script? Because I set a password for backuppc@example.com

I have tried to replace sendmail to postfix and configured postfix as relayhost smtp server (/etc/postfix/main.cf) and /etc/postfix/master.cf

587 inet n - n - - smtpd.

Because I can't find any solution from backuppc website to solve this problem.
Thanks.



 
have installed and configured postfix and used port 587 as smtp port.
Generally speaking, email on ports other than 25 won't work because other systems listen on port 25.

Because I can't find any solution from backuppc website to solve this problem.
What problem? You state that you want to send email on port 587 and post a configuration script and a line from Postfix's master.cf.

Other than it doesn't do as you wish, there is no information regarding your problem, which makes it very difficult to help you. Much more information will be required, assuming that this will work at all (see the comment about port 587). For example, are you getting a particular error message?
 
Email server hosted on ISP and used port 587 as smtp port not port 25.
My problem is how to define an email password on config.pl script. And I can send backuppc notification email to backuppc admin.
Anyone are good in perl script ?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top