LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-12-2010, 07:06 AM   #1
emrebilmuh
LQ Newbie
 
Registered: Sep 2009
Distribution: RHEL, Centos, Pardus, OpenSuse, Unslung, Ubuntu
Posts: 15

Rep: Reputation: 1
Question 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...
 
Old 11-12-2010, 07:58 AM   #2
Skullsoldier
Member
 
Registered: Oct 2010
Distribution: Debian
Posts: 32

Rep: Reputation: 0
Quote:
Originally Posted by emrebilmuh View Post
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
 
Old 11-12-2010, 08:08 AM   #3
emrebilmuh
LQ Newbie
 
Registered: Sep 2009
Distribution: RHEL, Centos, Pardus, OpenSuse, Unslung, Ubuntu
Posts: 15

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by Skullsoldier View Post
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.
 
Old 11-12-2010, 09:47 AM   #4
never say never
Member
 
Registered: Sep 2009
Location: Indiana, USA
Distribution: SLES, SLED, OpenSuse, CentOS, ubuntu 10.10, OpenBSD, FreeBSD
Posts: 195

Rep: Reputation: 37
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.
 
Old 11-12-2010, 11:03 AM   #5
emrebilmuh
LQ Newbie
 
Registered: Sep 2009
Distribution: RHEL, Centos, Pardus, OpenSuse, Unslung, Ubuntu
Posts: 15

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by never say never View Post
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
 
Old 11-12-2010, 12:07 PM   #6
Noway2
Senior Member
 
Registered: Jul 2007
Distribution: Gentoo
Posts: 2,125

Rep: Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781
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.
 
Old 11-12-2010, 03:20 PM   #7
andy2008
Member
 
Registered: Nov 2010
Posts: 40

Rep: Reputation: 2
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.
Old 11-13-2010, 04:02 AM   #8
Noway2
Senior Member
 
Registered: Jul 2007
Distribution: Gentoo
Posts: 2,125

Rep: Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781
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.
 
  


Reply



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
Posted to LQ and got flood of junk mail! JimF Linux - General 8 05-10-2008 02:02 AM
Spamassassin and Procmail with Junk mail combilli Linux - Software 1 11-05-2006 01:47 PM
spam_buttons move from /var/spool/mail/user to $HOME/mail/Junk paul_mat Linux - Software 0 05-25-2006 02:07 AM
stopping junk mail blastradius Ubuntu 2 02-19-2006 10:24 AM
mail server / junk mail configuration CtrlAltDel Linux - Software 2 01-16-2004 04:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:59 PM.

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