Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
11-12-2010, 07:06 AM
|
#1
|
LQ Newbie
Registered: Sep 2009
Distribution: RHEL, Centos, Pardus, OpenSuse, Unslung, Ubuntu
Posts: 15
Rep:
|
junk e-mail problem
Hello,
I have a domain address and i keep my website in the server at my home. I use bind for DNS. I opened an e-mail address for myself, but when i send an email to for example hotmail, gmail, it signs that as junk or spam. How can i make this address as trusted?
Thank you...
|
|
|
11-12-2010, 07:58 AM
|
#2
|
Member
Registered: Oct 2010
Distribution: Debian
Posts: 32
Rep:
|
Quote:
Originally Posted by emrebilmuh
Hello,
I have a domain address and i keep my website in the server at my home. I use bind for DNS. I opened an e-mail address for myself, but when i send an email to for example hotmail, gmail, it signs that as junk or spam. How can i make this address as trusted?
Thank you...
|
what are you really looking for that anywhere you are sending the emeil will get trusted automatically in gmail, hotmail you have to just open the emeil and just press trust this sender or move to inbox if i remember right 
|
|
|
11-12-2010, 08:08 AM
|
#3
|
LQ Newbie
Registered: Sep 2009
Distribution: RHEL, Centos, Pardus, OpenSuse, Unslung, Ubuntu
Posts: 15
Original Poster
Rep:
|
Quote:
Originally Posted by Skullsoldier
what are you really looking for that anywhere you are sending the emeil will get trusted automatically in gmail, hotmail you have to just open the emeil and just press trust this sender or move to inbox if i remember right 
|
Thank you anyway. I understand what you wanna tell me. But what are you talking about is client side protection. I mean, do i have to do anything to make my address trusted? I don't want my e-mail to go to spam box before i send it.
|
|
|
11-12-2010, 09:47 AM
|
#4
|
Member
Registered: Sep 2009
Location: Indiana, USA
Distribution: SLES, SLED, OpenSuse, CentOS, ubuntu 10.10, OpenBSD, FreeBSD
Posts: 195
Rep:
|
Setting up a mail server is no longer a trivial task. If you want the mail accepted there are several things that need to happen.
1. You must have a STATIC IP with a REVERSE DNS Entry. (i.e. commercial grade account). Many server will simply block or mark as spam all mail coming from dynamic IPs.
2. You will need to set up SPF (Sender Policy Framework) and Domain Keys to prove that your machine is authorized to send mail for your domain.
3. You will need to ensure that your SMTP server is NOT set up as an Open Relay.
Those are the bare basics to get a SMTP server up and delivering mail without it showing up as spam.
Normally it is best to simply forward mail coming from your SMTP server to your ISP's server. Unless the volume is really high, they aren't likely to care (and if you don't have a commercial account it may be part of the TOS).
If you want help setting up your SMTP server, you will need to tell us what SMTP server you are using (Postfix, Sendmail, Exim, ...) what distro you are using would also be helpful.
|
|
|
11-12-2010, 11:03 AM
|
#5
|
LQ Newbie
Registered: Sep 2009
Distribution: RHEL, Centos, Pardus, OpenSuse, Unslung, Ubuntu
Posts: 15
Original Poster
Rep:
|
Quote:
Originally Posted by never say never
Setting up a mail server is no longer a trivial task. If you want the mail accepted there are several things that need to happen.
1. You must have a STATIC IP with a REVERSE DNS Entry. (i.e. commercial grade account). Many server will simply block or mark as spam all mail coming from dynamic IPs.
2. You will need to set up SPF (Sender Policy Framework) and Domain Keys to prove that your machine is authorized to send mail for your domain.
3. You will need to ensure that your SMTP server is NOT set up as an Open Relay.
Those are the bare basics to get a SMTP server up and delivering mail without it showing up as spam.
Normally it is best to simply forward mail coming from your SMTP server to your ISP's server. Unless the volume is really high, they aren't likely to care (and if you don't have a commercial account it may be part of the TOS).
If you want help setting up your SMTP server, you will need to tell us what SMTP server you are using (Postfix, Sendmail, Exim, ...) what distro you are using would also be helpful.
|
At first, thank you  . I use debian lenny distro, sendmail as a mail server.
I have a static ip.
SMTP server is not configured as an open relay.
After you say, i installed libspf2-2 package. How can i implement it and set up the Domain Keys?
Thanks again for your help
|
|
|
11-12-2010, 12:07 PM
|
#6
|
Senior Member
Registered: Jul 2007
Distribution: Gentoo
Posts: 2,125
|
The SPF record is a TXT record in your public DNS. The syntax is cryptic. If you run a search on terms like 'create spf record' you will get links to some wizards that will assist you with the process. They will ask you things like your domain and will then do a lookup to fill in as many details as possible. You can then add things like other (backup) servers, etc. The SPF wizard from Microsoft is actually pretty good and is typically the one of the first ones to come up in a search.
|
|
|
11-12-2010, 03:20 PM
|
#7
|
Member
Registered: Nov 2010
Posts: 40
Rep:
|
In addition to what the others suggested, I'd recommend setting up DKIM (DomainKeys Identified Mail) instead of DomainKeys since the latter is deprecated. Or you could implement both.
But not having DKIM or DomainKeys set up, isn't enough to have your messages marked as spam by Gmail, Yahoo, etc.
I'd first make sure that:
1. You have a VALID BUSINESS CLASS IP (just because your IP is static, it doesn't mean it's not part of a dynamic IP class).
2. Make sure your IP is not on any RBLs (realtime blackhole lists). If your IP is from a dynamic class, it will surely show up on many RBLs. But, your IP could very well be a business class IP and still show up on RBLs (usually if there are trojans on computers inside your LAN and they all connect to the internet through your server's public IP, or if someone simply stole the password of one of your e-mail accounts and is using it to send spam). You can test your IP for RBL here: http://www.mxtoolbox.com/blacklists.aspx
3. If indeed you have a business class IP, you must ask your ISP to configure reverse DNS. So, let's say your domain is "yourdomain.com". The reverse DNS record for your IP should be "mail.yourdomain.com" or "whatever-you-want.yourdomain.com" or simply "yourdomain.com" (personally I'd go for mail.yourdomain.com). The only rule is that if I do a PTR query (a reverse DNS lookup) for your IP (let's say your IP is 99.99.99.99), the in-addr.arpa domain name response should be "mail.yourdomain.com". BUT, in order for the reverse DNS to be valid, when pinging "mail.yourdomain.com", I should have an answer from 99.99.99.99. In other words it should be: hostname = IP = reverse.
4. Set up SPF (which is very very easy, you just have to add a TXT record to your DNS zone. Like this: TXT "v=spf1 mx -all"
So, If all of the above requirements are met, I assure you, yahoo, gmail, hotmail will NEVER send your e-mails to the junk/spam folder. Good luck !
Last edited by andy2008; 11-12-2010 at 03:28 PM.
|
|
1 members found this post helpful.
|
11-13-2010, 04:02 AM
|
#8
|
Senior Member
Registered: Jul 2007
Distribution: Gentoo
Posts: 2,125
|
You raise really good points on both the reverse DNS and the concept of a static IP being part of a residential domain. Often times when responding to requests for help with an ISP refusing email the claim is that the IP is static. If you do a reverse lookup on the IP, though, you either get an invalid or something like 'residential-a.b.c.d-provider.com', which clearly identifies it as a someones home account.
In such a circumstance, as never say never stated, route your mail through your ISP's smtp server. The outbound mail still appears as being from your server, not theirs, and inbound mail comes directly to you, not through your ISP. The only difference is that their server is consistently the first hop in the header chain, which legitimizes your mail.
|
|
|
All times are GMT -5. The time now is 03:28 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|