Closed (fixed)
Project:
FAQ_Ask
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
14 Jan 2008 at 15:11 UTC
Updated:
5 Feb 2009 at 16:02 UTC
I can't get get emails to go through to the accounts I have selected as experts. The accounts are both hosted on the same box as my website so I doubt it is getting lost in the mail system. I've run cron manually as I was wondering if the messages are queued, but this hasn't had any success.
Any tips for things to check bar going through the code?
Email notifications for other modules works fine, e.g. organic groups.
Thanks, Stephen
Comments
Comment #1
jscoble commentedWhat do your server's mail logs show? I would first check your MTA log to see what is happening. If no errors are showing there, then check your IMAP/POP server log.
Hopefully one of those logs should show you where the messages are gettign dropped. You can also check the queue directory for the MTA to see if the mail you are attempting to send is stuck there. The same holds true for the mailbox directories, you will need to know if you are using mbox of /Maildir style mailboxes to figure out where the possible mail is.
Comment #2
nancydruAlso, please see if the receiving mail program is issuing any messages. Others are getting the email, so the last thing I would check would be the code.
Comment #3
scedwar commentedThanks - I'm happy it is something on our server. I'm on bluehost and sadly email logs are impossible to get hold of (I went through this game once before). We're upgrading to a much better package soon so I might just hold this and see if it is still in issue after the move. Thanks for all the help. Stephen
Comment #4
jscoble commentedI'm not saying that it is something on your server, just that your server's mail logs are the first places I would look when troubleshooting this issue.
You may want to try the devel module and see if it can trap any error messages returned by your SMTP server, if there are any.
I haven't used that module much so I do not know if it is capable of doing the above.
Another route to check would be to send a test email to one of the recipients from the same SMTP server that Drupal is connecting to and see if it goes through.
Can Bluehost work with you, e.g check the logs for you, see if the sent mail is sitting in your SMTP server's mailqueue, etc, when you try to send the email?
Comment #5
jscoble commentedThe MTA and IMAP/POP logs are the receiving mail programs, if I understand what you mean by receiving mail program properly. It is not looking through code. Figuring out what is going on when things aren't working as expected is one of the reasons programs have log files. Looking at those logs are the first thing that should be done when things aren't working as expected. Not doing so will usually lead to wasting a lot of time on speculation of what the problem may be.
The logs should also be inspected in the order specified, e.g. the MTA program's log and then the IMAP/POP program's log since that is the order that mail will work it's way through the system. If the recipient mailbox isn't on a domain for which you manage mailbox's you will not need to look at your IMAP/POP program's log, since it won't be involved in it.
If the MTA program is accepting the connection and sending it on, then I would test using a recipient whose mailbox I manage so I can see what is happening on that end.
FYI:
Email sending/receiving on the server side breaks down into two major segments, SMTP and most commonly IMAP4/POP3. The reality of mail handling is usually more compicated, but those two parts are the minimum required for a 'mail server' properly.
SMTP is Send Mail Transport Protocal and is concerned with the sending and relaying of mail and the program that handles it is your MTA, mail transfer authority, most likely Sendmail or Postfix on Linux. This is what your email client connects to when you want send an email.
IMAP4/POP3, usually referred to IMAP/POP are the most common mailbox protocals. This is what your email client connects to to check on/receive email. When an email is received, the MTA accepts it, if acceptable, and hands it off to the program that is responsible for placing it into the recipients mailbox.
Comment #6
nancydruComment #7
scedwar commentedthanks for the feedback. I'm moving to a much better host and will be upgrading all the installs in the process. I'll have full control over the VPS so if the problem continues, I'll report back and take it from there or close the issue. Thanks.
Comment #8
nancydruOkay. I'm marking this as postponed. If you find it not to be a problem with your new host, please mark it as "By design" (not "closed").
Comment #9
scedwar commentedNew host, latest build, all seems fine. Thanks for the help everyone.
Comment #10
nancydruThanks for the update. And just a warning, the mail is currently broken in the 6.x version.
Comment #11
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #12
emdalton commentedJust as an addendum to this, we saw the same problem when revisions were turned on for FAQ items. When we turned that off, the emails started going out. Not critical for us, but I thought this information might help if someone else encounters the same problem.