03-02-2014
Check Aliases as well
- Did you Issue newaliases command to get the changes in effect. ?
# vi /etc/aliases
User1: Superman
#newaliases
If you email to User1 it should be received by Superman
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I'm trying to make a script that will automatically read incoming mail, parse the recipient, then send a file off to the recipient.
(Name of file = mail.pl)
#!/usr/bin/perl
$mailDir = "/var/spool/mail/"
$user = print `cat <STDIN> | grep To: | cut -b5-`;
print `elm -s Awaiting Mail $user <... (1 Reply)
Discussion started by: ComTec
1 Replies
2. Programming
I've searched this message board, and the newgroups THOROUGHLY, in search of any information towards implenting the MySQL API with C... I'm a "beginner" to the C language I suppose, and i've made a few functions in C that can be implemented into the source code of Sendmail/mail.local, so that any... (2 Replies)
Discussion started by: CGrusden19
2 Replies
3. UNIX for Advanced & Expert Users
Running sendmail Version 8.12.10+Sun on Solaris 9.
I need to send mail from this server (serverA) to the mail server (Mserver), which will relay the message to the correct user. If I specify the user specifically, as in:
mailx -s"test" John.Doe@company.com
test
.
It works perfectly and... (13 Replies)
Discussion started by: dangral
13 Replies
4. Red Hat
Hi All
• Regarding installing sendmail pkg in server, I tried to install the pkg but getting the below errors as shown below - any idea on this?
• But I have successfully installed sendmail-cf pkg in the server box
• But that is not sufficient we also need to install sendmail pkg
• Help is... (2 Replies)
Discussion started by: csaha
2 Replies
5. Solaris
I have searched this forum extensively and can't seem to find a workable solution to my sendmail issue, but that could be down to my own lack of knowledge so please bear with me...
I am using a Sun Solaris 9 box to try and send e-mail to external addresses. The Unix box is not an e-mail server.... (9 Replies)
Discussion started by: KenLynch
9 Replies
6. UNIX for Advanced & Expert Users
I have been working on setting up a mail relay. I have just about everything working except for the procmail part. The configuration is as follows:
Internet -> mailrelay -> mail server
|
spamassassin server
I have spamassassin running on a seperate... (3 Replies)
Discussion started by: hardesty
3 Replies
7. UNIX for Dummies Questions & Answers
well, I came in today to a raft of messages that users couldn't email from UNIX (HP-UX B.11.23 U i64)
/etc/mail/sendmail.cf was missing - just GONE from the directory. Other files were there.
mail was successfully sent at 19:48 last night and unsuccessful at 00:10. At least those are times... (5 Replies)
Discussion started by: LisaS
5 Replies
8. UNIX for Dummies Questions & Answers
Hi,
This is my first thread.
Iam trying the following:
OS: Sun
Database: DB2, Informix, Oracle
* Get the status of the database (using database command line options)
* pipe to a text file
* send mail of the text file to receiptents.
TODO1:
First step i tried to send a test message.... (3 Replies)
Discussion started by: kenkanya
3 Replies
9. UNIX for Advanced & Expert Users
For a project that I have been assigned to, I need to send emails to a business partner (business_partner.com) from one production server. However, my emails neither reach their destination nor bounce back to me.
Working with our business partner's IT support, the following error was discovered... (1 Reply)
Discussion started by: alan
1 Replies
10. Shell Programming and Scripting
Hi All,
Not been around in a while. However I have been all over tinternet (google) for days looking for a solution.
Where I work has decided to use Sendmail on our Linux and Unix estate for sending emails via scripts. So I am hoping to eventually get a working solution for Sendmail and not... (3 Replies)
Discussion started by: dakelly
3 Replies
LEARN ABOUT CENTOS
aliases.sendmail
ALIASES(5) File Formats Manual ALIASES(5)
NAME
aliases - aliases file for sendmail
SYNOPSIS
aliases
DESCRIPTION
This file describes user ID aliases used by sendmail. The file resides in /etc and is formatted as a series of lines of the form
name: addr_1, addr_2, addr_3, . . .
The name is the name to alias, and the addr_n are the aliases for that name. addr_n can be another alias, a local username, a local file-
name, a command, an include file, or an external address.
Local Username
username
The username must be available via getpwnam(3).
Local Filename
/path/name
Messages are appended to the file specified by the full pathname (starting with a slash (/))
Command
|command
A command starts with a pipe symbol (|), it receives messages via standard input.
Include File
:include: /path/name
The aliases in pathname are added to the aliases for name.
E-Mail Address
user@domain
An e-mail address in RFC 822 format.
Lines beginning with white space are continuation lines. Another way to continue lines is by placing a backslash directly before a new-
line. Lines beginning with # are comments.
Aliasing occurs only on local names. Loops can not occur, since no message will be sent to any person more than once.
If an alias is found for name, sendmail then checks for an alias for owner-name. If it is found and the result of the lookup expands to a
single address, the envelope sender address of the message is rewritten to that address. If it is found and the result expands to more
than one address, the envelope sender address is changed to owner-name.
After aliasing has been done, local and valid recipients who have a ``.forward'' file in their home directory have messages forwarded to
the list of users defined in that file.
This is only the raw data file; the actual aliasing information is placed into a binary format in the file /etc/aliases.db using the pro-
gram newaliases(1). A newaliases command should be executed each time the aliases file is changed for the change to take effect.
SEE ALSO
newaliases(1), dbm(3), dbopen(3), db_open(3), sendmail(8)
SENDMAIL Installation and Operation Guide.
SENDMAIL An Internetwork Mail Router.
BUGS
If you have compiled sendmail with DBM support instead of NEWDB, you may have encountered problems in dbm(3) restricting a single alias to
about 1000 bytes of information. You can get longer aliases by ``chaining''; that is, make the last name in the alias be a dummy name
which is a continuation alias.
HISTORY
The aliases file format appeared in 4.0BSD.
$Date: 2004/07/12 05:39:21 $ ALIASES(5)