Red Hat System Administration III - Unit 14 - Basic SMTP Configuration
- MTA (Mail Transfer Agent) - relay mail from point to point until it's delivered.
- MDA (Mail Delivery Agent) - deliver mail to recipients local message store. Postfix provised its own MDA to deliver to default local file-based message store:
/usr/libexec/postfix/local - MUA (Mail User Agent) - clients used to send email and read email in user's message.
Key concept
- Relaying - forward from server to server
- Queueing - queued and retrieved periodically by MTA
- Rejected - failed at our end
- Bounced - rejected at their end
Postfix
- Use
postconfto see all the available Postfix options -
To make Postfix available on all interfaces, set
inet_interfaces> postconf -e inet_interfaces=all -
muttis a mail client for terminal postfix flushcan clear mail out of mail server for sending/var/spool/mail/$USERis where a user's mail store is
Intranet Configuration
- Standard roles:
null client-- runs local MTA, so all email can be forwarded to a central mail server for delivery. Does not accept local delivery for any email messages. Most machines will be null clients.inboundoutbound
Postfix Configuration
inet_interfaces- which interfaces to listen onmyorigin- usually company domainrelayhost- outbound mail servermydestination- company domain on inbound server- relevant for inbound!
local_transport- for the MDA to put it in the directorymynetworks- (relay from) use for outgoing mail server- relevant for outbound!
- Run
man postconffor more info
Aliases
-
Configure an alias for
andrewcalledacctmgr> vi /etc/aliases + acctmgr: andrew > newaliases -
Questions to answer:
- Configure your "MTA" mail server according to the following requirements:
- Your mail server should accept the mail from remote hosts as well as localhost
- set
mydestinationto accept mail for localhost, $myhostname, $mydomain, example.com
- set
- Your mail server should accept the mail from remote hosts as well as localhost
- Configure your "MTA" mail server according to the following requirements: