Страница 1 из 1

Настройка relay для jail

Добавлено: 2009-06-08 17:57:57
anon
Есть relay, имеющий внешний адрес xxx.xxx.xxx.xxx, при подключении из jail через telnet почта отправляется нормально.

Пытаюсь настроить sendmail в jail

rc.conf:

Код: Выделить всё

sendmail_enable="YES"
sendmail_msp_queue_enable="YES"
sendmail_outbound_enable="NO"
sendmail_submit_enable="NO"
/etc/mail/access

Код: Выделить всё

localhost.localdomain   RELAY
localhost               RELAY
torrn.ru             RELAY
10.1.1                  RELAY
/etc/mail/local-host-names

Код: Выделить всё

torrn.ru
/etc/mail/mailertable

Код: Выделить всё

torrn.ru             smtp:xxx.xxx.xxx.xxx
localhost               smtp:xxx.xxx.xxx.xxx
10.1.1.1                smtp:xxx.xxx.xxx.xxx
/etc/mail/torrn.mc

Код: Выделить всё

divert(0)
VERSIONID(`$FreeBSD: src/etc/sendmail/freebsd.mc,v 1.34.2.3.4.1 2009/04/15 03:14:26 kensmith Exp $')
OSTYPE(freebsd6)
DOMAIN(generic)

FEATURE(access_db, `hash -o -T<TMPF> /etc/mail/access')
FEATURE(blacklist_recipients)
FEATURE(local_lmtp)
FEATURE(mailertable, `hash -o /etc/mail/mailertable')
FEATURE(virtusertable, `hash -o /etc/mail/virtusertable')

dnl Uncomment to allow relaying based on your MX records.
dnl NOTE: This can allow sites to use your server as a backup MX without
dnl       your permission.
dnl FEATURE(relay_based_on_MX)

dnl DNS based black hole lists
dnl --------------------------------
dnl DNS based black hole lists come and go on a regular basis
dnl so this file will not serve as a database of the available servers.
dnl For that, visit
dnl http://www.google.com/Top/Computers/Internet/E-mail/Spam/Blacklists/

dnl Uncomment to activate Realtime Blackhole List
dnl information available at http://www.mail-abuse.com/
dnl NOTE: This is a subscription service as of July 31, 2001
dnl FEATURE(dnsbl)
dnl Alternatively, you can provide your own server and rejection message:
dnl FEATURE(dnsbl, `blackholes.mail-abuse.org', ``"550 Mail from " $&{client_addr} " rejected, see http://mail-abuse.org/cgi-bin/lookup?" $&{client_addr}'')

dnl Dialup users should uncomment and define this appropriately
dnl define(`SMART_HOST', `xxx.xxx.xxx.xxx')

dnl Uncomment the first line to change the location of the default
dnl /etc/mail/local-host-names and comment out the second line.
dnl define(`confCW_FILE', `-o /etc/mail/sendmail.cw')
define(`confCW_FILE', `-o /etc/mail/local-host-names')

dnl Enable for both IPv4 and IPv6 (optional)
DAEMON_OPTIONS(`Name=IPv4, Family=inet')
DAEMON_OPTIONS(`Name=IPv6, Family=inet6, Modifiers=O')

FEATURE(`no_default_msa')dnl turn off default entry for MSA

define(`confBIND_OPTS', `WorkAroundBrokenAAAA')
define(`confNO_RCPT_ACTION', `add-to-undisclosed')
define(`confPRIVACY_FLAGS', `authwarnings,noexpn,novrfy')

MAILER(local)
MAILER(smtp)
Как сделать, что бы вся почта шла через xxx.xxx.xxx.xxx relay ?

Re: Настройка relay для jail

Добавлено: 2009-08-25 10:19:44
Alex Keda
ну а что не так-то?