|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: Alexander Apathy (alexander_austria_at_yahoo.com)
Date: Thu Aug 01 2002 - 14:34:39 CDT
Hello everybody!
My email system consists of two servers: one mailbox server running cyrus
2.1.5 and one smtp/relay server running postfix version 1.1.11 with support
for MySQL maps. Both systems are communicating using LMTP. Maps and
authentification are mostly done via MySQL. I could not get transport_maps
running using MySQL so I simply used the mailbox_transport statement instead
(see below). Everything is working fine as long as the mailbox server is up
& running. When LMTP on the cyrus box is down mail dissapears / gets lost!
What I am trying to find is some fallback mechanism in the case LMTP is down
on the mailbox server. e.g. mail should be queued on the smtp/relay machine
in the case the LMTP daemon on the cyrus box is down. Here we go:
#####################################################
# main.cf
#####################################################
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
program_directory = /usr/lib/postfix
myhostname = isis.osiris.at
mynetworks = 192.168.1.0/24,
192.168.2.0/24,
127.0.0.0/8
mydestination = $myhostname,
mysql:/etc/postfix/mysql-mydestination.cf
# SASL Setup
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
# MAP DEFINITIONS
virtual_maps = hash:/etc/postfix/virtual,
mysql:/etc/postfix/mysql-virtual.cf
sender_canonical_maps = mysql:/etc/postfix/mysql-canonical.cf
#transport_maps = mysql:/etc/postfix/mysql-transport.cf
mailbox_transport = lmtp:inet:192.168.1.4:24
# RECEIVING MAIL
message_size_limit= 10000000
# ADDRESS EXTENSIONS (e.g., user+foo)
recipient_delimiter= +
# SENDING MAIL
masquerade_domains= $mydomain
masquerade_exceptions= root
# RELAY SETTINGS
relay_domains = $mydestination
smtpd_recipient_restrictions = permit_mynetworks,
permit_sasl_authenticated,
check_relay_domains
# AMAVISD VIRUSCHECK
content_filter = vscan:
soft_bounce = yes
#####################################################
# master.cf
#####################################################
smtp inet n - - - - smtpd
#628 inet n - - - - qmqpd
pickup fifo n - - 60 1 pickup
cleanup unix n - - - 0 cleanup
qmgr fifo n - - 300 1 qmgr
#qmgr fifo n - - 300 1 nqmgr
rewrite unix - - - - - trivial-rewrite
bounce unix - - - - 0 bounce
defer unix - - - - 0 bounce
flush unix n - - 1000? 0 flush
smtp unix - - - - - smtp
showq unix n - - - - showq
error unix - - - - - error
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - n - - lmtp
#
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
# The Cyrus deliver program has changed incompatibly.
#
vscan unix - n n - 10 pipe flags=q user=amavis
argv=/usr/sbin/amavis ${sender} ${recipient}
localhost:10025 inet n - n - - smtpd -o content_filter=
cyrus unix - n n - - pipe
flags=R user=cyrus argv=/usr/sbin/cyrdeliver -e -m ${extension} ${user}
uucp unix - n n - - pipe
flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail
($recipient)
ifmail unix - n n - - pipe
flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp unix - n n - - pipe
flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -d -t$nexthop -f$sender
$recipient
scalemail-backend unix - n n - 2 pipe
flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store
${nexthop} ${user} ${extension}
# only used by postfix-tls
smtps inet n - n - - smtpd -o
smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes
#587 inet n - n - - smtpd -o
smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes
#####################################################
Thanks for your support in advance.
Cheers,
Alexander
-
To unsubscribe, send mail to majordomo
postfix.org with content
(not subject): unsubscribe postfix-users
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]