A
A
Alexey2012-11-02 11:42:54
FreeBSD
Alexey, 2012-11-02 11:42:54

Mail. Switching sendmail to smtp relay mode with mail transfer to postfix

image

Good day.
At the moment, I got a server with Freebsd, which acts as a router, a firewall, a proxy server and a mailer. MX record is registered on this server, mail goes successfully.
There is a brand new server with almost configured postfix, which is located on the local network.

I would like the MX record to remain with the server with sendmail, but at the same time all mail goes from the Internet to the server with postfix and also goes to the Internet with postfix and all this through sendmail.
You can switch sendmail to SMTP Relay mode through access and mailertable

in access to register:
IP_address_postfix RELAY
execute:
/usr/sbin/makemap hash access < /etc/mail/access
in mailertablewrite:
mydomen.ru smtp:[IP_address_postfix]
execute:
/usr/sbin/makemap hash mailertable < /etc/mail/mailertable


Tell me how to correctly register the transport for postfix and is there anything else that sendmail needs to change for implementation?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
B
bodzilla, 2012-11-05
@capt_Rimmer

Everything is simple.
In sendmail, forward all domains through mailertable to: [local_ip], in access you need to add the line “Connect: 10.0.1 RELAY”
10.0.1 is just an example.
After in postfix, you need to add it to main.conf.
relayhost = 10.0.1.100 (ip_sendmail)

N
Nikolai Turnaviotov, 2012-11-03
@foxmuldercp

Excuse me, but why fence, hold and support an extra entity? at first it is possible to wrap all mail at once on a postfix.
And the second - I understand, let's say, the solution, when we check for spam viruses on some thread / postfix / exim and mail is then sent to some kind of Windows mailer - I regularly saw such a scheme, by the way, when something Unix after all checks relay letters to the same pool of exchange servers.
Well, in general, lately, between exim / sendmail / portfix, I have been choosing a good integrated solution from zimbra - a free and very good exchange replacement option, which makes no sense to buy for small companies.
I will finish transferring my company to it, I will publish a post, most likely.

A
Alexey, 2012-11-04
@capt_Rimmer

ruunix.ru/1604-nastrojka-sendmail-kak-vneshnego-pochtovogo-shlyuza.html
_ I ate the dog myself =)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question