LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 10-17-2007, 01:21 PM   #1
tsyuoi
LQ Newbie
 
Registered: Sep 2007
Posts: 9

Rep: Reputation: 0
Question Postfix relaying problem


Hi!

I have a problem when sending a mail to something@siol.net (siol.net is my ISP)
I have followed instructions in this howto:
http://workaround.org/articles/ispmail-etch/

My /var/log/mail.log file with error of this:
Code:
Oct 17 20:08:47 streznik postfix/smtpd[11046]: connect from localhost.localdomain[127.0.0.1]
Oct 17 20:08:48 streznik postfix/smtpd[11046]: 1E2301F337A: client=localhost.localdomain[127.0.0.1]
Oct 17 20:08:48 streznik postfix/cleanup[11049]: 1E2301F337A: message-id=<64277.195.210.202.46.1192644528.squirrel@lokalni.net>
Oct 17 20:08:48 streznik postfix/smtpd[11046]: disconnect from localhost.localdomain[127.0.0.1]
Oct 17 20:08:48 streznik postfix/qmgr[3328]: 1E2301F337A: from=<rakar@fitness-slovenia.info>, size=746, nrcpt=1 (queue active)
Oct 17 20:08:48 streznik postfix/smtp[11051]: 1E2301F337A: host mailhub.siol.net[193.189.160.212] refused to talk to me: 421 Service not available
Oct 17 20:08:48 streznik postfix/smtp[11051]: 1E2301F337A: host mailhub.siol.net[193.189.160.25] refused to talk to me: 421 Service not available
Oct 17 20:08:48 streznik postfix/smtp[11051]: 1E2301F337A: to=<pierce@siol.com>, relay=mailhub.siol.net[193.189.160.211]:25, delay=0.72, delays=0.42/0.03/0.28/0, dsn=4.0.0, status=deferred (host mailhub.siol.net[193.189.160.211] refused to talk to me: 421 Service not available)
I send a mail to my ISP asking what could be wrong, because my ip resolves to my domain name and vice versa. And I got a reply explaining me that this error is shown because I send mail throu their server mailhub.siol.net and that if I have my own server I should send mesages throu it. Or else this relaying thing has to be configured.

I read something about this on postfix sites but I kinda don't understand. Could someone explain in some simple way what this means, and give me a hint in which direction I have to search to repair this error?

Thank you,
Matic

Last edited by tsyuoi; 10-17-2007 at 01:25 PM.
 
Old 10-17-2007, 05:35 PM   #2
WindowBreaker
Member
 
Registered: Oct 2005
Distribution: Slackware
Posts: 228

Rep: Reputation: 40
Are you trying to send all outgoing email thru your ISP's mail server? That would be a good idea, as running a home mail server is likely to get spam-filtered a lot, based on dynamic ip's, and no reverse DNS mapping.

To do so, set the relayhost in main.cf. You can do that by running as root:
Code:
postconf -e "relayhost = smtp:[isps.mail.server.name]"
The restart postfix by:
Code:
postfix reload

If this doesn't work, your ISP's SMTP server may require authentication. If that's the case, let me know and I'll show you how to set it properly as a SASL client.
 
Old 10-18-2007, 07:51 AM   #3
tsyuoi
LQ Newbie
 
Registered: Sep 2007
Posts: 9

Original Poster
Rep: Reputation: 0
Thank you for reply.
No I am not sending all mesagaes throu ISPs server. I would like to send mail from my own server. How can I set that?

Matic
 
Old 10-18-2007, 01:15 PM   #4
WindowBreaker
Member
 
Registered: Oct 2005
Distribution: Slackware
Posts: 228

Rep: Reputation: 40
In your log file that you posted, we are only interested in the 'smtp:' lines, as that is the smtp client, and we are dealing with problem sending mail.
ie:
Quote:
Oct 17 20:08:48 streznik postfix/smtp[11051]: 1E2301F337A: host mailhub.siol.net[193.189.160.212] refused to talk to me: 421 Service not available
If you look at the line above, your smtp client (postfix) is telling you that mailhub.siol.net is refusing to talk to it. In other words, it's not a firewall issue, it's just that mailhub.siol.net is refusing to even TALK to your mail server. Why? That's a good question. Probably because that mail server has checks in place to reduce spam. Checks, such as 'if client has a dynamic ip, don't talk to it', and 'if client does not have a valid reverse dns mapping, don't talk to it'. In some cases, the server that rejects you will indicate why they rejected you. That's not the case here. They may not want to divulge why, to delay spammers in bypassing their checks.

If it were me, try sending mail to 5 or 6 different domains. See if any of them go thru. Then you'll know you're not misconfigured, it's just that certain mail servers won't talk to yours.

From there, you can focus on the 'smtp:' entries in the logs to see if you get a rejection code, or something similar.

One thing I noticed, is that you got rejected with a 4xx code. And, it specifically stated 'service not available'. I think that mail server is either misconfigured, or is having issues. The reason is that 4xx codes are temporary rejection codes, that are in essense saying, try again in a few minutes, cuz I'm having a [hopefully] temporary problem at the moment.

Trying to send to other domains should help you pinpoint the issues.

Last edited by WindowBreaker; 10-18-2007 at 01:18 PM.
 
  


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
Postfix Relaying trueguy2001_in Linux - Security 1 02-22-2006 02:03 PM
Postfix: Relaying all mail to different mailaccount Marix Linux - Software 1 01-08-2006 07:52 AM
Postfix and relaying, help! Sizam Linux - Software 1 04-11-2005 04:37 PM
Postfix relaying mail to internal mail server tradecraft1 Linux - Networking 2 10-28-2003 03:01 PM
Relaying with Linux Postfix 1.1.7 - please help BaDaBooM Linux - General 2 04-02-2003 08:24 PM

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

All times are GMT -5. The time now is 12:41 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