LinuxQuestions.org
Review your favorite Linux distribution.
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 10-01-2010, 01:52 AM   #1
wddest
LQ Newbie
 
Registered: Oct 2010
Posts: 4

Rep: Reputation: 0
Postfix email - mail rejected


I'm haveing little issue with Postfix configuration - Some email providers reject emails and others send it to spam. With some providers (hotmail)everything is OK.

Oct 1 09:36:24 e82-103-128-223s postfix/smtp[26623]: 924FE380848: to=<mingi.email@mail.ee>, relay=mx-1.tele2.ee[212.107.52.23]:25, delay=3.3, delays=0.1/0/1.1/2.1, dsn=4.7.1, status=deferred (host mx-1.tele2.ee[212.107.52.23] said: 450 4.7.1 Client host rejected: cannot find your hostname, [82.103.128.223] (in reply to RCPT TO command))

what could be the problem?
 
Old 10-01-2010, 02:34 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
you need to have functional DNS records for your IP, or try to use the upstream relay that your isp provides, e.g smtp.myisp.com which will recognise your IP as one of it's own and relay. Normally. To do this in postfix you'd use a relayhost directive:
Code:
relayhost (default: empty)

    The next-hop destination of non-local mail; overrides non-local domains in recipient addresses. This information is overruled with relay_transport, sender_dependent_default_transport_maps, default_transport, sender_dependent_relayhost_maps and with the transport(5) table.

    On an intranet, specify the organizational domain name. If your internal DNS uses no MX records, specify the name of the intranet gateway host instead.

    In the case of SMTP, specify a domain name, hostname, hostname:port, [hostname]:port, [hostaddress] or [hostaddress]:port. The form [hostname] turns off MX lookups.

    If you're connected via UUCP, see the UUCP_README file for useful information.

    Examples:

    relayhost = $mydomain
    relayhost = [gateway.example.com]
    relayhost = uucphost
    relayhost = [an.ip.add.ress]
 
Old 10-01-2010, 02:51 AM   #3
wddest
LQ Newbie
 
Registered: Oct 2010
Posts: 4

Original Poster
Rep: Reputation: 0
DNS records for the IP addresses are ok ( also reverse dns resolves correctly)

or atleast how this looks for me.
 
Old 10-01-2010, 07:11 PM   #4
Noway2
Senior Member
 
Registered: Jul 2007
Distribution: Gentoo
Posts: 2,125

Rep: Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781
Hotmail is pretty liberal in accepting mail. The fact that your tests work with them is a good indication that your server is functional. Assuming your IP is 82.103.128.223, I show that it resolves to beta.jobgo.com. If this is correct, perhaps you need to add an SPF record to your DNS?

Acid_kewpie's suggestion is most likely the easiest and most reliable answer. Relay your outbound mail through your ISP. It will avoid these types of problems and will still appear from and be received by your own server. The only thing is that your ISP will be the first hop in the full header list, which is no big deal.
 
Old 10-02-2010, 09:54 AM   #5
wddest
LQ Newbie
 
Registered: Oct 2010
Posts: 4

Original Poster
Rep: Reputation: 0
Yes, beta.jobgo.com is correct.
How can I add SPF recod?
 
Old 10-02-2010, 11:13 AM   #6
Noway2
Senior Member
 
Registered: Jul 2007
Distribution: Gentoo
Posts: 2,125

Rep: Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781
The SPF record gets added to your DNS. It is typically done as a TXT record entry. The syntax is somewhat cryptic, so the easiest way to create one is to use a wizard. Here is a link to one by Microsoft: http://www.microsoft.com/mscorp/safe...nderid/wizard/ It is the one that I used. You will be asked a series of questions, like what is your domain, etc. The wizard will perform a DNS lookup and suggest many of the parameters. Basically, it lets you declare that the server at this domain, with this IP, etc (there are multiple validation methods you can choose) is indeed a designated mail server. You will then add this to your DNS, much like an A, MX or mx record, but it is of type TXT.
 
Old 10-05-2010, 02:23 AM   #7
wddest
LQ Newbie
 
Registered: Oct 2010
Posts: 4

Original Poster
Rep: Reputation: 0
No I have set the SPF record, but emails are still rejected by the server...

Any other ideas?
 
Old 10-05-2010, 01:25 PM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
Any reason you're still not referencing a number of comments about your ISP's relay??
 
  


Reply


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
Mail Server with : Postfix,dovecot. (Can send email, but can't receive email from internet mail) cparapat Linux - Server 1 08-16-2010 12:57 AM
Sending mail with mail() and postfix when using namecheap's DNS and Email Hosting iLinx Linux - Server 2 07-19-2010 05:53 PM
Sendmail - mail server rejected email and unable to send ghostplanet Linux - Server 4 02-24-2010 10:10 PM
Mail from Postfix to hotmail: rejected ! gagou7 Linux - Server 5 10-10-2009 07:21 AM
cannot receive email from mail server installed with postfix charles168 Linux - Software 4 08-15-2003 02:06 PM

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

All times are GMT -5. The time now is 02:53 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration