05-24-2014
sendmail can also receive mail. It must run as a service/daemon and listen to port 25(smtp) at all network interfaces.
It usually comes with mail.local that creates Unix mailbox files.
This User Gave Thanks to MadeInGermany For This Post:
7 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a script that send email using sendEmail (CentOS shell)
script is:
sendEmail -vvv -u "TestCompany, Inc.: USB Added" -f user@domain.com -t To@domain.com -s ASPMX.L.GOOGLE.com -m "USB Activity" -o tls=aut
o username=user3@domain.com password=password
So far this works fine.
Now i... (5 Replies)
Discussion started by: kashif.live
5 Replies
2. Solaris
Hello
I need your kind help for configuring email on Solaris 10 so I can send reports from the system to my management and my colleagues.
I have the IP address of the email server of my company and the port 2525. I went through many documents online with no luck.
Can any one help me... (4 Replies)
Discussion started by: samer.odeh
4 Replies
3. Shell Programming and Scripting
Hello,
I would like to send email message to my mail list.
I have been running linux based server and I submitted this process manually up to now.
I would like to send each individual with a shell script.
In ssh panel, I tested below command and it works smoothly.
sendEmail -t... (1 Reply)
Discussion started by: baris35
1 Replies
4. Solaris
Hi Guys,
I am trying to send email from solaris server using sendemail utility. I want to send multi content email. For example, i want to send email body with html file and a attachment of txt file. I using below code but the html not render correctly in email body.
(
echo "To:... (2 Replies)
Discussion started by: tharmendran
2 Replies
5. UNIX for Dummies Questions & Answers
SCO Unix OpenServer v6.
We use the script below for sending mass emails with attachments.
sendemail -f $From_user -o message-file=/u/fg4/data/EmailDefaultBody.html -u $su
bj -s $MAIL_SRVR -xu $MAIL_USER -xp $MAIL_PSWD -a $emlname.pdf -t $MAILTO
MAIL_SVR=SMPTOUT.SECURESERVER.NET
... (0 Replies)
Discussion started by: jet47
0 Replies
6. Shell Programming and Scripting
Hi everyone,
I try to send an email with "sendemail", I created four variables for do cleaner but it doesn't work :( below :
#!/bin/bash
sender=$(X@x.com)
recipient=$(x@x.com)
subject=$(Files Copy)
server=$(x.x.x.x)
/usr/bin/sendemail -f $sender -t $recipient -u $subject -m blablabla... (2 Replies)
Discussion started by: Arnaudh78
2 Replies
7. Shell Programming and Scripting
Hi,:)
I try this :
#!/bin/bash
sender="me@example.com"
recipient="you@example.com"
subject="TEST FILE"
server="0.0.0.0"
file=$(cat file.txt)
/usr/bin/sendemail -f $sender -t $recipient -u $subject -m $file
My file.txt:
BLABLALA
BLABLABLA (7 Replies)
Discussion started by: Arnaudh78
7 Replies
LEARN ABOUT BSD
mail.local
mail.local(1M) System Administration Commands mail.local(1M)
NAME
mail.local - store mail in a mailbox
SYNOPSIS
/usr/lib/mail.local [-f sender] [-d] recipient
DESCRIPTION
mail.local reads the standard input up to an end-of-file and appends it to each user's mail file (mailbox). This program is intended to be
used by sendmail(1M) as a mail delivery agent for local mail. It is not a user interface agent.
Messages are appended to the user's mail file in the /var/mail directory. The user must be a valid user name.
Each delivered mail message in the mailbox is preceded by a "Unix From line" with the following format:
From sender_address time_stamp
The sender_address is extracted from the SMTP envelope address (the envelope address is specified with the -f option).
A trailing blank line is also added to the end of each message.
The mail files are locked with a .lock file while mail is appended.
The mail files are created with mode 660, owner is set to recipient, and group is set to mail. If the ``biff'' service is returned by get-
servbyname(3SOCKET), the biff server is notified of delivered mail. This program also computes the Content-Length: header which will be
used by the mailbox reader to mark the message boundary.
OPTIONS
The following options are supported:
-f sender Specifies the "envelope from address" of the message. This flag is technically optional, but should be used.
-d Specifies the recipient of the message. This flag is also optional and is supported here for backward compatibility. That
is, mail.local recipient is the same as mail.local -d recipient.
-l Turn on LMTP mode.
-r from Specify the sender's name (for backward compatibility).
-7 Do not advertise 8BITMIME support in LMTP mode.
-b Return a permanent error instead of a temporary error if a mailbox exceeds quota.
OPERANDS
The following operand is supported:
recipient The recipient of the mail message.
ENVIRONMENT VARIABLES
TZ Used to set the appropriate time zone on the timestamp.
EXIT STATUS
The following exit values are returned:
0 Successful operation.
>0 An error occurred.
FILES
/tmp/local.XXXXXX temporary files
/tmp/lochd.XXXXXX temporary files
/var/mail/user_name user's mail file
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWsndmu |
+-----------------------------+-----------------------------+
SEE ALSO
mail(1), comsat(1M), sendmail(1M), getservbyname(3SOCKET), attributes(5)
SunOS 5.10 11 Apr 1997 mail.local(1M)