Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 30th July 2006, 16:27
shiidii shiidii is offline
Member
 
Join Date: Jul 2006
Location: Melbourne, Australia
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Default Postfix blocking issues, suggestions?

I'm currently using posftix on my ubuntu server to send out emails from a shopping cart system for clients. The only problem is getting the emails to send properly.

Mails get through to hotmail fine, gmail detects them as spam, and they aren't getting through to any paid email account.

Code:
Jul 31 13:09:53 localhost sm-mta[17378]: k6V39p8Y017376: to=<email@domain.com>, ctladdr=<www-data@localhost.localdomain> (33/33), delay=00:00:02, xdelay=00:00:02, mailer=esmtp, pri=121348, relay=mail-fwd.mx.ssggrp-wc.com. [204.3.219.65], dsn=5.0.0, stat=Service unavailable
Jul 31 13:09:57 localhost sm-mta[17378]: k6V39p8Y017376: k6V39v8Y017378: DSN: Service unavailable
Edit: I fixed the name servers up, and now it's just this singular issue, DSN: Service unavailable.

I know it could be a number of things, I just need an idea of the things I need to take care of for this to start working properly.

Thank you kindly, I will contribute to this forum however I can.

Last edited by shiidii; 31st July 2006 at 06:25.
Reply With Quote
Sponsored Links
  #2  
Old 31st July 2006, 10:05
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 37,041
Thanks: 841
Thanked 5,661 Times in 4,468 Posts
Default

You are sending emials from "<www-data@localhost.localdomain", localhost.localdomain is not a valid domain for sending mail, as other servers are not able to resolve it.

What is the output of:

hostname -f
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 31st July 2006, 10:47
shiidii shiidii is offline
Member
 
Join Date: Jul 2006
Location: Melbourne, Australia
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by till
You are sending emials from "<www-data@localhost.localdomain", localhost.localdomain is not a valid domain for sending mail, as other servers are not able to resolve it.

What is the output of:

hostname -f
*blushes*

it is indeed
localhost.localdomain

Is this because I left 'relayhosts=' in 'main.cf' blank?
Reply With Quote
  #4  
Old 31st July 2006, 10:51
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 37,041
Thanks: 841
Thanked 5,661 Times in 4,468 Posts
Default

Quote:
Originally Posted by shiidii
Is this because I left 'relayhosts=' in 'main.cf' blank?
No, it is not related to the relayhosts setting.

Please edit the file /etc/hostname and replace localhost.localdomain with the hostname of your server. Then execute:

/bin/hostname -F /etc/hostname
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 31st July 2006, 10:56
shiidii shiidii is offline
Member
 
Join Date: Jul 2006
Location: Melbourne, Australia
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Default

thanks! Man sorry, I was checking so many things and the problem ended up staring me right in the face. I'm quite shamed of that mistake, Thanks a million!

Last edited by shiidii; 31st July 2006 at 11:01.
Reply With Quote
  #6  
Old 31st July 2006, 11:50
shiidii shiidii is offline
Member
 
Join Date: Jul 2006
Location: Melbourne, Australia
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Edit, VV Below

Last edited by shiidii; 31st July 2006 at 16:48.
Reply With Quote
  #7  
Old 31st July 2006, 16:48
shiidii shiidii is offline
Member
 
Join Date: Jul 2006
Location: Melbourne, Australia
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Default

This is where I am at right now. I am very much in the cold here, any help would be much appreciated.

Code:
Jul 31 23:24:15 localhost sendmail[10163]: k6VDOFsC010163: from=www-data, size=383, class=0, nrcpts=1, msgid=<200607311324.k6VDOFsC010163@mydomain.com>, relay=www-data@localhost
Jul 31 23:24:15 localhost sm-mta[10164]: k6VDOFpq010164: from=<www-data@mydomain.com>, size=617, class=0, nrcpts=1, msgid=<200607311324.k6VDOFsC010163@mydomain.com>, proto=ESMTP, daemon=MSP-v4, relay=localhost [127.0.0.1]
Jul 31 23:24:15 localhost sendmail[10163]: k6VDOFsC010163: to="Test Test" <email@example.com.au>, ctladdr=www-data (33/33), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30383, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (k6VDOFpq010164 Message accepted for delivery)
Jul 31 23:24:17 localhost sm-mta[10166]: k6VDOFpq010164: to=<email@example.com.au>, ctladdr=<www-data@mydomain.com> (33/33), delay=00:00:02, xdelay=00:00:02, mailer=esmtp, pri=120617, relay=mail-fwd.mx.ssggrp-wc.com. [204.3.219.65], dsn=5.0.0, stat=Service unavailable
Jul 31 23:24:21 localhost sm-mta[10166]: k6VDOFpq010164: k6VDOLpq010166: DSN: Service unavailable
Reply With Quote
  #8  
Old 31st July 2006, 17:04
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,752 Times in 2,582 Posts
Default

Quote:
Jul 31 23:24:17 localhost sm-mta[10166]: k6VDOFpq010164: to=<email@example.com.au>, ctladdr=<www-data@mydomain.com> (33/33), delay=00:00:02, xdelay=00:00:02, mailer=esmtp, pri=120617, relay=mail-fwd.mx.ssggrp-wc.com. [204.3.219.65], dsn=5.0.0, stat=Service unavailable
It says that the SMTP service is currently not available on mail-fwd.mx.ssggrp-wc.com so this is not a problem with your server (unless the other one is blocking you because you're blacklisted).
Does sending to other recipients work?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #9  
Old 1st August 2006, 02:53
shiidii shiidii is offline
Member
 
Join Date: Jul 2006
Location: Melbourne, Australia
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

Hey, thanks for replying.
I sent the email to a Bigpond email address, and I get a seperate error.

Code:
Aug  1 09:11:10 mydomain sendmail[11039]: k6VNBAeK011039: from=www-data, size=1103, class=0, nrcpts=1, msgid=<200607312311.k6VNBAeK011039@mydomain.com>, relay=www-data@localhost
Aug  1 09:11:11 mydomain sm-mta[11040]: k6VNBAso011040: from=<www-data@mydomain.com>, size=1335, class=0, nrcpts=1, msgid=<200607312311.k6VNBAeK011039@mydomain.com>, proto=ESMTP, daemon=MSP-v4, relay=localhost [127.0.0.1]
Aug  1 09:11:11 mydomain sendmail[11039]: k6VNBAeK011039: to="Test User" <anotheremail@bigpond.net.au>, ctladdr=www-data (33/33), delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=31103, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (k6VNBAso011040 Message accepted for delivery)
Aug  1 09:11:12 mydomain sm-mta[11042]: k6VNBAso011040: to=<anotheremail@bigpond.net.au>, ctladdr=<www-data@mydomain.com> (33/33), delay=00:00:02, xdelay=00:00:01, mailer=esmtp, pri=121335, relay=extmail.bpbb.bigpond.com. [144.140.80.14], dsn=5.6.0, stat=Data format error
Aug  1 09:11:12 mydomain sm-mta[11042]: k6VNBAso011040: k6VNBCso011042: DSN: Data format error
This is what reads in the return email
553 myserver.mydomain.com does not exist

Then I sent an email to helocheck
Code:
... while talking to mail.cbl.abuseat.org.:
>>> DATA
<<< 550-Verification failed for <www-data@myserver.mydomain.com>
<<< 550-Unrouteable address
<<< 550 Sender verify failed
550 5.1.1 <helocheck@cbl.abuseat.org>... User unknown
It appears that myserver.mydomain SHOULD BE mail.mydomain. I am unsure where I need to make this config.

-------------------
Problem solved

The setting "Masquerade_as" in sendmail.cf was set to "myserver.mydomain.com".. instead of just "mydomain.com". My bad.

Last edited by shiidii; 1st August 2006 at 05:48.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
postfix problems with smtp linkdeb Server Operation 13 15th March 2014 18:58
IMAP question - Moving servers and mail. Brenton Installation/Configuration 11 14th May 2010 15:38
postfix issues whitty Installation/Configuration 15 15th June 2006 15:39
Blocking postfix traffic by IP HackerJL Installation/Configuration 1 29th May 2006 17:12
postfix starts and stops why lhatle Installation/Configuration 2 21st December 2005 16:20


All times are GMT +2. The time now is 12:57.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.