LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Postfix email - mail rejected (https://www.linuxquestions.org/questions/linux-server-73/postfix-email-mail-rejected-835560/)

wddest 10-01-2010 01:52 AM

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?

acid_kewpie 10-01-2010 02:34 AM

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]


wddest 10-01-2010 02:51 AM

DNS records for the IP addresses are ok ( also reverse dns resolves correctly)

or atleast how this looks for me.

Noway2 10-01-2010 07:11 PM

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.

wddest 10-02-2010 09:54 AM

Yes, beta.jobgo.com is correct.
How can I add SPF recod?

Noway2 10-02-2010 11:13 AM

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.

wddest 10-05-2010 02:23 AM

No I have set the SPF record, but emails are still rejected by the server...

Any other ideas?

acid_kewpie 10-05-2010 01:25 PM

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


All times are GMT -5. The time now is 08:32 AM.