OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
(no subject)

From: Bjoern Arstad (chanchoonline.no)
Date: Mon Jun 23 2003 - 10:27:50 CDT


Hi!
I'm having some trouble with the Postfix/Smtpd on Mdk9.1. It's installed
via urpmi, seemingly in chroot/jail. I've added the proxymap line in
main.cf as well as a reference to $alias_map, all of which seems kocher.
I suspect either a missing file (dict_map client..?) or a simple
authorization problem. I've even linked passwd from the jail uo to
/etc/passwd.

   The debug from smtpd shows the following:
Jun 23 04:06:11 picante postfix/smtpd[2695]: maps_append:
proxy:unix:passwd.byname
Jun 23 04:06:11 picante postfix/smtpd[2695]: connect to subsystem
private/proxymap: Connection refused
Jun 23 04:06:11 picante postfix/smtpd[2695]: warning: connect #1 to
subsystem private/proxymap: Connection refused
Jun 23 04:06:21 picante postfix/smtpd[2695]: connect to subsystem
private/proxymap: Connection refused
Jun 23 04:06:21 picante postfix/smtpd[2695]: warning: connect #2 to
subsystem private/proxymap: Connection refused
-etc...
Jun 23 04:07:52 picante postfix/master[1785]: warning: process
/usr/lib/postfix/smtpd pid 2695 exit status 1
Jun 23 04:07:52 picante postfix/master[1785]: warning:
/usr/lib/postfix/smtpd: bad command startup -- throttling
Jun 23 02:08:03 picante postfix/pickup[2622]: 25E882BCAF: uid=0 from=<root>

I have also reinstalled both Postfix and the IMAP-2002 rpm's, but I get
the same crap in the output.

Here's main.cf

[rootpicante private]# more /etc/main.cf
/etc/main.cf: No such file or directory
[rootpicante private]# more /etc/postfix/main.cf
#soft_bounce = no
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
#default_privs = nobody
myhostname = pigalle.arstad.biz
#mydomain = arstad.biz
#myorigin = $myhostname
myorigin = $mydomain
#inet_interfaces = all
#inet_interfaces = $myhostname
#mydestination = $myhostname, localhost.$mydomain, $mydomain,
# mail.$mydomain, www.$mydomain, ftp.$mydomain
mynetworks = 192.168.85.0/24, 192.168.86.0/24, 192.168.87.0/24,
192.168.88.0/24, 192.168.89.0/24, 127.0.0.0/8
#mynetworks = $config_directory/mynetworks
#mynetworks = hash:/etc/postfix/network_table
relay_domains = $mynetworks
#relayhost = smtp.online.no
#defer_transports = smtp (Only for systems that use on-demand dialup IP)
#disable_dns_lookups = yes (Only for delivery across LANs that are
disconnected most of the time)
local_recipient_maps = proxy:unix:passwd.byname, $alias_maps
in_flow_delay = 1s
masquerade_domains = $mydomain
virtual_maps = hash:/etc/postfix/virtual
canonical_maps = hash:/etc/postfix/canonical
#alias_maps = dbm:/etc/aliases
alias_maps = hash:/etc/postfix/aliases,
ldap:aliasLDAP,hash:/etc/postfix/major-aliases
aliasLDAP_server_host = picante.arstad.biz
aliasLDAP_search_base = dc=arstad, dc=biz
aliasLDAP_server_port = 389
aliasLDAP_bind = yes
aliasLDAP_bind_dn = uid=Manager, ou=Technical. dc=arstad, dc=biz
aliasLDAP_query_filter = (mailacceptinggeneralid=%s)
aliasLDAP_result_attribute = maildrop
aliasLDAP_scope = sub
#alias_database = dbm:/etc/aliases
#alias_database = dbm:/etc/mail/aliases
#alias_database = hash:/etc/aliases
#alias_database = hash:/etc/aliases, hash:/opt/majordomo/aliases
alias_database = hash:/etc/postfix/aliases
#recipient_delimiter = +
#home_mailbox = Mailbox
#home_mailbox = Maildir/
mail_spool_directory = /var/spool/mail
mailbox_command = /usr/bin/procmail -m /etc/postfix/procmailrc
#mailbox_command = /usr/bin/procmail -Y -a $DOMAIN
#mailbox_transport = lmtp:unix:/file/name
#mailbox_transport = cyrus
#fallback_transport = lmtp:unix:/file/name
#fallback_transport = cyrus
#fallback_transport =
#luser_relay = $userother.host
#luser_relay = $localother.host
#luser_relay = admin+$local
#header_checks = regexp:/etc/postfix/header_checks
#fast_flush_domains = $relay_domains
#fast_flush_domains =
smtpd_banner = $myhostname ESMTP $mail_name $mail_version on Mandrake Linux
smtp_skip_4xx_greeting = yes
smtp_skip_5xx_greeting = yes
#local_destination_concurrency_limit = 2
#default_destination_concurrency_limit = 10
#debug_peer_list = 127.0.0.1
#debug_peer_list = some.domain
debugger_command =
        PATH=/usr/bin:/usr/X11R6/bin
        xxgdb $daemon_directory/$process_name $process_id & sleep 5
delay_warning_time = 1
sendmail_path = /usr/sbin/sendmail.postfix
newaliases_path = /usr/bin/newaliases.postfix
mailq_path = /usr/bin/mailq.postfix
setgid_group = postdrop
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/postfix-1.1.11/samples
readme_directory = /usr/share/doc/postfix-1.1.11/README_FILES
max_use = 1000
mydestination = $myhostname, localhost.$mydomain, $mydomain
inet_interfaces = 192.168.85.83
transport_maps = hash:/etc/postfix/transport
local_destination_recipient_limit = 20
local_destination_concurrency_limit = 20
debug_peer_list = arstad.biz, online.no
message_size_limit = 20480000
qmgr_message_active_limit = 1000
qmgr_message_recipient_limit = 1000
line_length_limit = 4096
sender_canonical_maps = hash:/etc/postfix/canonical_sender
recipient_canonical_maps = hash:/etc/postfix/canonical_recipient
relocated_maps = hash:/etc/postfix/relocated
smtpd_sender_restrictions = hash:/etc/postfix/access, reject_maps_rbl
smtpd_helo_restrictions = check_helo_access hash:/etc/postfix/spam,
reject_maps_rbl
maps_rbl_domains = blackholes.mail-abuse.org, dialups.mail-abuse.org
header_checks = regexp:/etc/postfix/headspam
home_mailbox = /Mail/mbox
forward_path =
$home/Mail/.forward${recipient_delimiter}${extension},$home/Mail/.forward
trigger_timeout = 30s

-and master.cf

smtp inet n - y - - smtpd -v
smtps inet n - n - - smtpd -v
# -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes
#submission inet n - n - - smtpd
# -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes
#628 inet n - n - - qmqpd
pickup fifo n - y 60 1 pickup
cleanup unix n - y - 0 cleanup
#qmgr fifo n - n 300 1 qmgr
qmgr fifo n - y 300 1 nqmgr
#tlsmgr fifo - - n 300 1 tlsmgr
rewrite unix - - y - - trivial-rewrite
bounce unix - - y - 0 bounce
defer unix - - y - 0 bounce
flush unix n - y 1000? 0 flush
smtp unix - - y - - smtp -v
showq unix n - y - - showq
error unix - - y - - error -v
local unix - n n - - local
virtual unix - n y - - virtual
lmtp unix - - y - - 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.
#
cyrus unix - n n - - pipe
 flags=R user=cyrus argv=/cyrus/bin/deliver -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=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop
$recipient

Appreciate some help before I cave in to MS Exchange... (oh just kidding!)

Thanks
Bjoern
chanchoonline.no