6. Configuring PostfixPostfix needs two major config files: main.cf and master.cf. Both needs your attention. 6.1. master.cfYou need to change just one line: old:
new:
What affect that changes? A look to the cyrus man-pages man deliver clears that issue: The Postfix default setup uses a wrong path to cyrus deliver, this is the first change. The parameter »-r« Inserts a proper return path, without that mail rejected/retured by sieve will be sent to the cyrus user at yourdomain. 6.2. main.cfHere you need to change some more things like hostname, relaying, alias-lookups etc. First change hostname:
mydestination Here you have to put all domainnames that are local (corresponding to sendmail's /etc/mail/sendmail.cw). If you have multiple domains separate them with comma.
Relayhost Here you define where to deliver outgoing mails. If you do not provide any host. mails are delivered directly to the destination smtp host. Usually your relayhosts are your providers smtp-server.
Mailtransport Here you define how the mails accepted for local delivery should be handled. In your situation mails should be delivered by the cyrus delivery-program.
At the end of file you need to add:
If you dont want to have a overriding /etc/postfix/virtual, skip the hash entry Outgoing addresses should be rewritten from i.e test0002 at domain to user.name at virtualhost.com. This is important if you like to use a webmail interface.
Now you need to create the file /etc/postfix/mysql-virtual.cf:
The file /etc/postfix/mysql-canonical.cf:
Finally the file /etc/postfix/mysql-mydestination.cf:
SMTP Authentication with SASL and PAM Put the following in your /etc/postfix/main.cf
You also need to create the file /usr/local/lib/sasl2/smtpd.conf with the following content:
The next step is make the saslauthd socket being found by postfix:
Linux HOWTO full list |
|
This document, LDP HOWTO-INDEX, is copyrighted (c) 1995 - 2002 by Tim Bynum, Guylhem Aznar, Joshua Drake and Greg Ferguson. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant Sections, with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the license is available at http://www.gnu.org/copyleft/fdl.html. If you have questions, please contact the LDP.
Web Design Copyright © 1999-2003. Chrisranjana Software Solutions Pvt Ltd. syndicate rss feed |