#1  
Old 4th March 2009, 00:29
Threk Threk is offline
Junior Member
 
Join Date: Mar 2009
Posts: 4
Thanks: 0
Thanked 1 Time in 1 Post
Default Postfix not delivering Email

I had a mail server blow up on me last night, Hard drive is completely dead.
Someone else configured this whole system and the part that died (email storage, IMAP and POP for most of the domains) is the part I knew the least about. I know it was authenticating against our LDAP server, as are the inbound routing server and the outbound SMTP server. So I quickly grabbed the most recent server CD I had handy (Ubuntu 8.10) and installed Postfix, and Dovecot.

I found some tutorials on LDAP, Postfix and Dovecot and tried to modify them to match our existing LDAP schema (I'd rather not be trying to re-configure the remaining servers.)

Everything seems to be working now except mail never gets delivered to the mailboxes.

Here is my /etc/postfix/main.cf

Quote:
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

readme_directory = no

# TLS parameters
smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
smtpd_use_tls=no
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache

# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.

myhostname = <hostname>
myorigin = /etc/mailname
mydestination = localhost
relayhost =
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
mailbox_transport = dovecot
dovecot_destination_recipient_limit = 1
mailbox_command = /usr/lib/dovecot/deliver
permit_sasl_authenticated = yes

ldap_bind_dn = cn=<adminuser>,dc=extantsolutions,dc=net
ldap_bind_pw = <adminpassword>
ldap_search_base = ou=%d,ou=MailAuth,dc=extantsolutions,dc=net
ldap_domain = dc=extantsolutions,dc=net
ldap_server_host = <ldaphost>
ldap_server_port = 389
ldap_version = 3

# Accounts
accounts_server_host = $ldap_server_host
accounts_search_base = $ldap_search_base
accounts_query_filter = (&(&(uid=%n)))
accounts_result_attribute = uid
accounts_cache = no
accounts_bind = yes
accounts_bind_dn = $ldap_bind_dn
accounts_bind_pw = $ldap_bind_pw
accounts_version = $ldap_version

# virtual accounts for delivery
virtual_mailbox_domains = /etc/postfix/virtual_mailbox_domains
virtual_mailbox_base = /home/vmail
virtual_mailbox_maps = ldap:accounts
virtual_minimum_uid = 1001
virtual_uid_maps = static:1001
virtual_gid_maps = static:1001

local_recipient_maps = proxy:unixasswd.byname, $virtual_mailbox_maps
That server died just before I was going to go to bed last night so I haven't slept in 34 hours or so. I might be missing something obvious, and any help would be appreciated.
Reply With Quote
Sponsored Links
  #2  
Old 4th March 2009, 02:37
Threk Threk is offline
Junior Member
 
Join Date: Mar 2009
Posts: 4
Thanks: 0
Thanked 1 Time in 1 Post
Default

libpostfix-global.so.1.0.1 is broken

I finally though to check syslog and found that every time postfix tries to deliver an email libpostfix-global.so.1.0.1 segfaults.

just !!#$% wonderfull
Reply With Quote
  #3  
Old 4th March 2009, 05:42
Threk Threk is offline
Junior Member
 
Join Date: Mar 2009
Posts: 4
Thanks: 0
Thanked 1 Time in 1 Post
Default

I think the segfault is due to a problem in my configuration, I installed OpenBSD on the server and with pretty much the same configuration it gives the same error.

Any hints/ideas would be VERY welcome
Reply With Quote
  #4  
Old 4th March 2009, 14:03
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
Default

Quote:
Originally Posted by Threk View Post
I think the segfault is due to a problem in my configuration, I installed OpenBSD on the server and with pretty much the same configuration it gives the same error.
In this case it seems to be a hardware problem...
Have you tried memtest to check the RAM?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 6th March 2009, 01:34
Threk Threk is offline
Junior Member
 
Join Date: Mar 2009
Posts: 4
Thanks: 0
Thanked 1 Time in 1 Post
 
Default

Actually it was the configuration

uid=%n works in dovecot, but not postfix
Reply With Quote
The Following User Says Thank You to Threk For This Useful Post:
falko (6th March 2009)
Reply

Bookmarks

Tags
postfix ldap

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Undelivered Mail Returned to Sender Error202 General 5 7th May 2009 11:14
localhost postfix/master: fatal: bind 127.0.0.1 port 125: Permission denied g18c Installation/Configuration 4 24th March 2009 17:39
Help configure Postfix to use alt port 465 or 587 BoloMarkIII Installation/Configuration 10 16th March 2009 17:57
Centos 4.4 32bit Hangs, High Server load 3cwired_com Server Operation 11 16th November 2006 15:47
Verify email setup meekish Installation/Configuration 28 27th October 2006 15:36


All times are GMT +2. The time now is 01:41.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.