A
A
Alexey2012-12-11 15:46:22
FreeBSD
Alexey, 2012-12-11 15:46:22

SMTP relay on sendmail?

Comrades - admins, share your experience in setting up this miracle or maybe even a working config.
There is an old server on freebsd 5.4 that cannot be destroyed. It is necessary to finish it from local delivery to a rayleigh on other internal server.
There is such a mc:

divert(-1)
divert(0)
VERSIONID(`$FreeBSD: src/etc/sendmail/freebsd.mc,v 1.28 2003/04/18 01:25:41 gshapiro Exp $')
OSTYPE(freebsd5)
DOMAIN(generic)

FEATURE(access_db, `hash -o -T<TMPF> /etc/mail/access')
FEATURE(local_lmtp)
FEATURE(virtusertable, `hash -o /etc/mail/virtusertable')
FEATURE(accept_unresolvable_domains)
FEATURE(use_cw_file)
FEATURE(nouucp, `reject')
FEATURE(relay_based_on_MX)
MASQUERADE_AS(домен.ru)
define(`confCW_FILE', `-o /etc/mail/local-host-names')
define(`confNO_RCPT_ACTION', `add-to-undisclosed')
define(`confPRIVACY_FLAGS', `authwarnings,noexpn,novrfy')
define(`confMAX_MESSAGE_SIZE', `10485760')dnl
MAILER(local)
MAILER(smtp)
INPUT_MAIL_FILTER(`sp-milter', `S=local:/var/run/sp-milter.sock, F=T, T=C:1m;S:20s;R:20s;E:1m')

Is the following solution usable?:
reki.ru/sendmail_transit_setup.html

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey, 2012-12-11
@capt_Rimmer

It just so happens that I answer myself :)

divert(-1)
divert(0)
VERSIONID(`$FreeBSD: src/etc/sendmail/freebsd.mc,v 1.28 2003/04/18 01:25:41 gshapiro Exp $')
OSTYPE(freebsd5)
DOMAIN(generic)

FEATURE(access_db, `hash -o -T<TMPF> /etc/mail/access')
FEATURE(local_lmtp)
FEATURE(mailertable, `hash -o /etc/mail/mailertable')
define(`confCR_FILE', `/etc/mail/relay-domains')dnl

MASQUERADE_AS(домен.ru)
FEATURE(allmasquerade)dnl
FEATURE(masquerade_envelope)dnl

define(`confNO_RCPT_ACTION', `add-to-undisclosed')
define(`confPRIVACY_FLAGS', `authwarnings,noexpn,novrfy')
define(`confMAX_MESSAGE_SIZE', `10485760')dnl
MAILER(local)
MAILER(smtp)
INPUT_MAIL_FILTER(`sp-milter', `S=local:/var/run/sp-milter.sock, F=T, T=C:1m;S:20s;R:20s;E:1m')

Everything worked, we will finish the rest tomorrow.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question