Hi. Sorry if this is not the right place to ask this question. Im running ISPConfig on my server, and if i run a php script to mail someone, it ends up as spam, or sometimes it wont even make it to the spam box. Gmail allways recieve the email (as spam). I dont have a dns server, so i use http://www.domainnameshop.com as dns provider. This is a line from the details of the recieved email: What does that mean? Please help me fix this.
Make sure that you have an SPF record for your domain. Also, please check if your server is blacklisted: http://www.mxtoolbox.com/blacklists.aspx
My server is not blacklisted. I have never added an spf record before, so tell me if this is wrong. Its still not working. This is from the zone file: Code: mydomain.com. 3600 IN TXT "v=spf1 a ~all" One other thing, where do i change the smtp.mail and Return-path address in the mail? The address entered there is wrong
You can use this wizard to check your SPF record: http://old.openspf.org/wizard.html You must set the correct sender address in your email client.
The spf record seems to have worked for gmail. Thanks! However, there is still a domain that wont recieve at all. I have a domain (www.mydomain.com) hosted by someone else, but i have som subdomains of that domain (sub.mydomain.com) hosted by my own server running ispconfig. The email is not served by me, but if i try to send an email to [email protected] from my server, it never gets there. Does my server stop outgoing emails if i hosts a subdomain of the domain the email address i send to? Thanks.
Yes! Found the emails. The server does stop the email from going out to the mailserver, and puts them in a mailbox of the administrator of the subdomain. Under options, i have selected "External mailserver" as mailserver, but still no go.. so i removed every entry of the domain from /etc/postfix/local-host-name and /etc/postfix/virtusertable but still they are getting into the mailbox of the administrator. (I did restart both ispconfig and postfix after the changes) Any advice?