Re: Sample Configs for Postfix

Wim Kerkhoff <[email protected]>
Newsgroups gmane.comp.isp.ispman.user
Message-ID <[email protected]>
Ronnie Tartar wrote:

>No, still having problems getting from the local smtp server into the imap
>mailbox.
>
>I'm having trouble with postfix.  
> 
>1.  on the imap server, the mail is getting there but I am getting user not
>found in local recipient table.
> 
>  
>
I've tweaked my configs a bit since I originally put them online. Here's 
the relevant portion of my main.cf:

default_transport = smtp
mailbox_transport = lmtp:127.0.0.1:555
fallback_transport = lmtp:unix:/var/run/cyrus/socket/lmtp
inet_interfaces = all

# for anti-virus filtering... comment out if amavisd is acting up
content_filter = smtp-amavis:[127.0.0.1]:10024

ldapvirtual_server_host = localhost
ldapvirtual_server_port = 389
ldapvirtual_bind = yes
ldapvirtual_bind_dn = cn=Directory Administrator, o=ispman
ldapvirtual_bind_pw = mypass
ldapvirtual_timeout = 5
ldapvirtual_search_base = o=ispman
ldapvirtual_query_filter = (|(mailLocalAddress=%s)(mailAlias=%s))
ldapvirtual_result_attribute = mailRoutingAddress,mailForwardingAddress
ldapvirtual_lookup_wildcards = no

In master.cf, lmtp is enabled.

Of course, check that LMTP is enabled in cyrus.conf.

In the 'transport' file, I have nothing tricky. transport_domains lists 
either "local:" or "smtp:mail.domain.tld" for each of the hosted 
domains, depending on if this server is the primary MX or just a backup.

I haven't had a problem with the LDAP integration to Postfix, or 
delivery via LMTP to Cyrus, for a long time. Most hickups are caused by 
generally big bad streams of spam, virii, mail bombs, etc.

Wim


-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.