Você está na página 1de 2

Chaptor - 06 CONFIGURING EMAIL TRANSMISSION

Configure Send-Only Email Service


NULL CLIENT:- Is a client machine that runs a local mail server which forwards a
ll emails to an outbound mail relay for delivery. Null clients not accept local
delivery for any messeges. It can only send them to the outbound mail relay.
Transmission of an email message:-
Mail client communicate with an outgoing mail server, which will relay that mess
age to its final destination. Mail client transmit messages to mail server using
SMTP. Outgoing mail relay not require authentication from internal clinets. In
this case server listen on port 25/tcp.
Main Postfix configuration file resides on
[root@mail /]# vim /etc/postfix/main.cf
inet_interfaces = Which network interfaces postfix listens on for incoming and o
utgoing messages.
myorigin = Specifies the domain that locally posted mail appears to come from $m
yhostname or $mydomain
relayhost = Specifies the default host to send mail to. Forward emails to the ma
il server specified that are supposed to be sent to foreign mail address.
mydestination = Which domain the mail server is an endpoint for.
local_transport = Determine how email addressed to $mydestination should be deli
vered.
mynetworks = Specifies the trusted clients to allow mails relay through the mai
l server.
POSTFIX NULL CLIENT CONFIGURATION:-

[root@mail /]# vim /etc/postfix/main.cf


relayhost directive to point to the corporate mail server.
relayhost = [cl1.main.com]
mail server to only relay emails from the local system.
Let the Postfix mail server liten only on the loopback interface for emails to d
elover.
inet_interfaces = loopback-only
Configure null client so that mails origination from the 127.0.0.0/8 and forward
ed to the relay host by the local null client.
mynetworks = 127.0.0.0/24
Configure postfix to all outgoing mails have thier sender domain re-written to
the company domain cl1.main.com
myorigin = cl1.main.com
Prohibit the postfix mail server from deliveing any messages to local accounts.
Configure null clinet to not act as an end point for any mail domain.
mydestination =
Configure local null client to not sort any mails into mailboxes on local system
. local delivery is turned off.
local_transport = error: local delivery disabled
[root@mail /]# systemctl enable postfix.service
[root@mail /]# systemctl restart postfix.service

Directive Null Client


(serverX.example.com)
inet_interfaces inet_interfaces = loopback-only
myorigin myorigin = desktopX.exa mple.com
relayhost relayhost = [smtpX.exa mple.com]
mydestination mydestination =
local_ transport local_transport = error: local delivery disabled
mynetworks mynetworks = 127.0.0.0/8, [::1] /128

Você também pode gostar