This site has a a really good explanation on how to set up and configure sendmail on a linux server.
http://www.linuxhomenetworking.com/linux-hn/sendmail.htm#_Toc109364450
yum install sendmail-cf
cd /etc/mail
make
m4 sendmail.mc > sendmail.cf
# by default we allow relaying from localhost...
localhost.localdomain RELAY
localhost RELAY
127.0.0.1 RELAY
# allow relaying from local PC's
10.10.10 RELAY
cassy@xxx.com.au REJECT
# local-host-names - include all aliases for your machine here.
xxx.com.au
mail.xxx.com.au
http://www.xxx.com.au
emana@xxx.com.au emana
infoa@xxx.com.au emana
johna@xxx.com.au johna
salesb@xxx.com.au emana
johnb@xxx.com.au johnb
kimboa@xxx.com.au kimboa
maca@xxx.com.au macalias
pcb@xxx.com.au pcb
trinab@xxx.com.au trinab
brianc@xxx.com.au brianc
digitalmac@xxx.com.au mac
cassyd@xxx.com.au cassy1
#
# Aliases in this file will NOT be expanded in the header from
# Mail, but WILL be visible over networks or from /bin/mail.
#
# >>>>>>>>>> The program "newaliases" must be run after
# >> NOTE >> this file is updated for any changes to
# >>>>>>>>>> show through to sendmail.
#
# Basic system aliases -- these MUST be present.
mailer-daemon: postmaster
postmaster: root
# General redirections for pseudo accounts.
bin: root
daemon: root
....
# Person who should get root's mail
# root: stephenx@xxx.com.au
macalias: mac, cassy
This is a quick document on how to get yourself out of some binds I've run into with sendmail. These aren't going to be the most organized, but I figure someone else may find these useful.
(host map: lookup (mydomain.com.au) : deferred)
nameserver 10.10.10.183
If you have some specific jobs you'd
like to process in the queue, you can skip the rest of the queue processing and handle just those.
sendmail -v -qI {queue id substring}
or
sendmail -v -qS {sender address substring}
or
sendmail -v -qR {recipient address substring}
These variations will limit the processing to a sender address,
recipient, etc, in the queue.
553: Sorry, that domain isn't in my list of allowed rcpthosts; 5.7.1
MASQUERADE_AS(`mydomain.com.au')
make
service sendmail restart
yum install sendmail-mc
Return to Linux Server Configuration Notes
Users browsing this forum: No registered users and 8 guests