What are all the things that should be configured in order to send a mail from Unix box.
An eg. program of sending a mail will help me a lot!!!!!!
Thanks in advance
-Om (5 Replies)
Issue on sending a mail with attachment using unix script ?
Below is my code and is working fine and there is a issue in the attachment, the attachment file printing as a text-encripted message in the mail draft box instead of putting as a attachment
(cat $msg; uuencode $attach1 in1.txt ;... (2 Replies)
Please help me in writing the script for sending an attachment through email.(For example my text file name is :abc.txt and it is in directory d:/abc) (1 Reply)
HI
i usually send an a file attachment in a mail from unix like following.
mailx -s 'Job Success' someoner@gmail.com < attachment.log
But I have observed in several threads that we can also use uuencode and uudecode.
What are they? when should we use uudecode and uuencode
... (1 Reply)
Hi ,
I am trying to create shell script which will help me to compare file name in two folder.
There is a multiple file store in 2 folder.I want to compare that with the name.
If all the file are same then send a mail that "all date is same"
if not then create one log file which contain... (4 Replies)
Hi,
I have shell script which checks the filesystem check but does not send the mail. I might be missing something very simple.. could you please help?
#!/bin/sh
_servers="machine name"
_out="/tmp/output.$$"
_email="me@there.com"
_sub="Disk Space Report $(date)"
_mail=/usr/bin/mail... (5 Replies)
Hello All,
I m trying to send mail from my unix script,
I have used the below command
mailx -s 'hi' email address < temp.txt
It is not giving me any error,but I couldn't receive the mail
Can you please help me.
Many Thanks,
Pragyan (6 Replies)
I am in need of a script that will send out emails while going through a NAT. What I have that works is as follows:
display_remote_IP | sort | uniq | while read i
do
FOUND=0
for IP in `echo $ACCEPTABLEIP`
do
if ; then
FOUND=1... (2 Replies)
I have installed sSMTP and set it up to use my gmail.
Sending from cli does work fine:
msg file:From: test@gmail.com
To test2@gmail.com
Subject: test post
This is a test
Executing from console:ssmtp -t < msg
does work fine.
But from script it does not work:#!/bin/sh
ssmtp -t < msg... (0 Replies)
hi all,
needed a script to send a notfication mail if the specified folder had the copy of the files that are older than 15 days
i.ee for example
my folder name is SAi
and the files are as follows
sai.txt
copyofsai.txt
copyofcopyofsai.txt
hemanth.txt
copyofcopyofhemanth.txt... (4 Replies)
Discussion started by: hemanthsaikumar
4 Replies
LEARN ABOUT DEBIAN
ftpmail
ftpmail(1) General Commands Manual ftpmail(1)NAME
ftpmail - FIFO-based Perl script for sending email based on proftpd TransferLog
SYNOPSIS
ftpmail [ --help ] [ --fifo fifo-path ] [ --from email-address ] [ --log xferlog-file ] [ --recipient email-address ] [ --subject email-
subject ] [ --smtp-server server-address ] [ --attach-file ] [ --auth smtp-auth-info-file ] [ --ignore-users regex-pattern ] [ --watch-
users regex-pattern ]
DESCRIPTION
ftpmail is a Perl script designed to read ProFTPD's TransferLog log entries, watching for uploads, and to send an automatic email notifica-
tion when uploads occur. To use ftpmail , you configure your proftpd daemon to write its TransferLog to a FIFO; the ftpmail program is a
FIFO reading program which then processes those log messages.
OPTIONS --help Display a short usage description, including all available options.
--attach-file
If used, this will cause a copy of the uploaded file to be included, as an attachment, in the generated email.
--auth smtp-auth-info-file
Configures the path to a file containing SMTP authentication information. The configured file should look like this:
user username
password password
--fifo fifo-path
Indicates the path to the FIFO to which proftpd is writing its TransferLog. That is, this is the path that you used for the
TransferLog directive in your proftpd.conf. This parameter is REQUIRED.
--from email-address
Specifies the email address to use in the From email header. This parameter is REQUIRED.
--ignore-users regex-pattern
Specifies a Perl regular expression. If the uploading user name matches this regular expression, then an email notification is
NOT sent; otherwise, an email is sent.
--log xferlog-path
Since this script reads the TransferLog using FIFOs, the actual TransferLog file is not written by default. Use this option to
write the normal TransferLog file, in addition to watching for uploads.
--recipient email-address
Specifies an email address to which to send an email notification of the upload. This option can be used multiple times to
specify multiple recipients. AT LEAST ONE recipient is REQUIRED.
--smtp-server server-address
Specifies the SMTP server to which to send the email. This parameter is REQUIRED.
--subject subject
Specify a custom Subject email header for the email sent. The default Subject is:
User '$user' uploaded file '$file' via FTP
--watch-users regex-pattern
Specifies a Perl regular expression. If the uploading user name matches this regular expression, then an email notification is
sent; otherwise, no email is sent.
FILES
/var/log/xferlog
AUTHORS
ProFTPD is written and maintained by a number of people, full credits can be found on http://www.proftpd.org/credits.html
SEE ALSO proftpd(8), xferlog(5)
Full documentation on ProFTPD, including configuration and FAQs, is available at http://www.proftpd.org/
For help/support, try the ProFTPD mailing lists, detailed on http://www.proftpd.org/lists.html
Report bugs at http://bugs.proftpd.org/
March 2011 ftpmail(1)