![]() |
Drupal + Postfix Integration
Hello,
I got halfway through Drupal + Postfix Integration and thought it may not be for me because it started instructing me on how to set up e-mail accounts for Drupal users. Anyway, what I'm trying to do is enable the e-mail for Drupal registrations and reseting passwords, but my test user is still not getting a password reset e-mail. I'm going through the Postfix Debugging Howto, now, but if anyone has any suggestions, please help. Thanks |
Are there any errors in your mail log?
|
Let's see. I think I was looking in the wrong place for errors the other night, but yeah, I have some errors; and I don't see how to fix them because it says
Code:
postfix/trivial-rewrite[3064]: warning: do not list domain [my.domain.url] in BOTH mydestination and virtual_mailbox_domainsCode:
virtual_mailbox_domains = proxy:mysql:/etc/postfix/drupal-domains.cfCode:
user = [username]Code:
mydestination = [my.domain.url], localhost, localhost.[mylocal.domain]Code:
postfix/trivial-rewrite[3079]: warning: do not list domain [my.domain.url] in BOTH mydestination and virtual_mailbox_domainsCode:
2525 inet n - n - - smtpdCode:
smtpd_banner = $myhostname ESMTP $mail_name |
Quote:
|
Mailfix module
You're probably right. This module is intended for centralized authentication between Drupal and Postfix. If you just need to send Drupal alerts, it should work out of the box. You may want to monitor the mail log:
Code:
sudo tail -f /var/log/mail/mail.log |
Okay, this is still a little over my head, but I want to hang in there. I could definitely remove the domain name from the main.cf even though I don't understand virtual users. My guess would be anyone who doesn't have an actual user account on my server, i.e. those Drupal users requesting a password or registering.
On the other hand, I monitored the mail.log while requesting a new password, and it showed something interesting: Quote:
Alright, what I did was change the Quote:
Quote:
PS Should the myhostname be my server's hostname or the web domain name? |
Postfix configuration
Handheld,
It seems to be a Postfix issue. I don't think you need Mailfix domain to accomplish what you want (send Drupal alerts), so you probably don't need virtual hosts at all. It seems like you want your Drupal server to send out mail messages directly. Thus your Postfix configuration should have mydestination directive include localhost. To verify this: Code:
sudo postconf | grep mydestinationCode:
sudo postconf -e "mydestination = you.host.here, localhost, localhost.localdomain" |
hmm, mydestination already says localhost :-/
Quote:
|
Drupal SMTP modules
You may also want to try SMTP Drupal modules. PHPMailer is an excellent module for remote SMTP authentication, you may use a Gmail account, for instance.
|
thanks a lot :) It threw an error
Quote:
Quote:
|
| All times are GMT +2. The time now is 22:16. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.