Drupal + Postfix Integration Under Ubuntu 8.04 (Hardy) - Page 6
Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Deliver Incoming Mails Through the Dovecot LDATo make Postfix use Dovecot you need to append one line to /etc/postfix/master.cf: vim /etc/postfix/master.cf dovecot unix - n n - - pipe
flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -d ${recipient}
Reload Postfix: /etc/init.d/postfix reload Now make Postfix deliver mails through this service: postconf -e virtual_transport=dovecot
Configure DovecotDovecot supports PO3, POP3S, IMAP and IMAPS. To enable all these services modify /etc/dovecot/dovecot.conf to match the following settings: vim /etc/dovecot/dovecot.conf protocols = imap imaps pop3 pop3s
mail_location = maildir:/home/vmail/%d/%n/Maildir
auth default {
mechanisms = plain login
passdb sql {
args = /etc/dovecot/dovecot-sql.conf
}
userdb static {
args = uid=5000 gid=5000 home=/home/vmail/%d/%n allow_all_users=yes
}
socket listen {
master {
path = /var/run/dovecot/auth-master
mode = 0600
user = vmail
}
client {
path = /var/spool/postfix/private/auth
mode = 0600
user = postfix
group = postfix
}
}
}
protocol lda {
log_path = /home/vmail/dovecot-deliver.log
global_script_path = /home/vmail/globalsieverc
postmaster_address = postmaster@example.com
auth_socket_path = /var/run/dovecot/auth-master
mail_plugins = cmusieve
}
Edit /etc/dovecot/dovecot-sql.conf and make sure the following directives are set: vim /etc/dovecot/dovecot-sql.conf driver = mysql connect = host=127.0.0.1 dbname=drupal_example_com user=drupal_example_com password=opensesame default_pass_scheme = PLAIN-MD5 password_query = SELECT mail AS user, pass AS password FROM users WHERE mail='%u'; Then you must restart Dovecot: /etc/init.d/dovecot restart That’s it! Now Drupal and Postfix share the same authentication repository.
References
|
Sponsored Links:
Unified Communications: Thoughts, Strategies and Predictions
Join the discussion.
www.seamlessenterprise.com
IP Convergence
Integrate your wireless and wireline networks.
Learn how from the experts at Sprint.
www.seamlessenterprise.com
Wireless & Wireline Integration
Thoughts, strategies and solutions: join the discussion
www.seamlessenterprise.com
Unified Communications 2009
Join the Discussion. Now.
www.seamlessenterprise.com
Join the discussion.
www.seamlessenterprise.com
IP Convergence
Integrate your wireless and wireline networks.
Learn how from the experts at Sprint.
www.seamlessenterprise.com
Wireless & Wireline Integration
Thoughts, strategies and solutions: join the discussion
www.seamlessenterprise.com
Unified Communications 2009
Join the Discussion. Now.
www.seamlessenterprise.com





print: 
Recent comments
23 hours 31 min ago
1 day 1 hour ago
1 day 4 hours ago
1 day 7 hours ago
1 day 10 hours ago
1 day 11 hours ago
1 day 11 hours ago
1 day 12 hours ago
1 day 13 hours ago
1 day 13 hours ago