Drupal + Postfix Integration Under Ubuntu 8.04 (Hardy) - Page 6
Want to support HowtoForge? Become 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
|



Recent comments
1 day 58 min ago
1 day 5 hours ago
1 day 10 hours ago
1 day 12 hours ago
1 day 13 hours ago
1 day 13 hours ago
1 day 17 hours ago
1 day 18 hours ago
1 day 20 hours ago
2 days 3 hours ago