Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 10-24-2012, 03:05 PM   #1
Registered: Mar 2008
Posts: 69

Rep: Reputation: 15


I have 1 domain and 2 aws ec2 instances. I have 2 subdomains, 'dev.mydomain.tld` and 'prod.mydomain.tld' one pointing to one instance and the second pointing to the other one.
My primary domain is configured to point to the IP of one of this instances. I have configured MX, and txt/spf records and also rdns for all of them. Both machines have a local mta, POstfix for sending emails to customers. One of them, `dev` sends emails fine. The other one 'prod' will send email in 'spam' although it's configured to send emails using `dev`.

Any thoughts?

Oh, forgot to tell, when sending email from console (mail -s "test" < /dev/null ) I get the email fine, in INBOX. The trouble is when sending emails from Drupal. When drupal sends email, it gets into 'SPAM' dir.

Last edited by colucix; 10-24-2012 at 03:40 PM. Reason: Merged posts to preserve Zero Reply List advantages
Old 10-25-2012, 04:38 PM   #2
Registered: Oct 2012
Location: Germany
Distribution: Ubuntu, Debian, Fedora,Windows 7
Posts: 107

Rep: Reputation: 11
Is your drupal site is also running on the same server? How is drupal sending the email? Well, one easy thing would be to compare the settings for both the servers, if something is missing in dev. A mail can go to the spam folder for many reasons, no ptr record/reverse dns record, no spf record, no fully qualified host name, massage content etc. Here are some hints:
Old 10-25-2012, 11:45 PM   #3
Registered: Mar 2008
Posts: 69

Original Poster
Rep: Reputation: 15
Thanks mmheera

And to try to answer your questions now. I'm not sure how drupal is sending emails. I haven't configured drupal. it was there installed. I guess it calls '/usr/sbin/mail'. Also Redmine is installed there and sometimes the emails go to Inbox but sometimes they are going into 'spam'. This is really annoying. I have ptr records for both, and spf and fqdn. Dunno about the message content.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Folders for Email Spam swamprat Linux - Software 1 08-02-2007 10:58 AM
spam email programme alaios Linux - Software 1 01-31-2006 03:24 PM
Spam email mickeyboa Fedora 10 08-23-2005 11:39 AM
email considered spam kubicon Linux - Networking 4 02-02-2004 12:46 PM
I'll take some email with my spam awdoyle General 5 05-08-2003 07:29 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:01 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration