homepage Welcome to WebmasterWorld Guest from 54.227.160.102
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Hardware and OS Related Technologies / Website Technology Issues
Forum Library, Charter, Moderators: phranque

Website Technology Issues Forum

    
Email not delivered to certain email domains - stat=Data format error
simplesimon

10+ Year Member



 
Msg#: 3947440 posted 6:01 am on Jul 7, 2009 (gmt 0)

Hi,

I have multiple domains hosted on a Linux/Apache VPS account. I have a single dedicated IP address for the account. I'm having problems with email not being delivered to certain email domains/ISPs. I get the error "stat=Data format error" in my error log. The emails are generated by Joomla.

When I look at the headers of emails that do get through, I can see that the Return Path and the Received values are for the primary account of my VPS, not any of the values I have set in Joomla. I assume that the receiving mail server sees the discrepancy and doesn't deliver the mail because of it.

If I understand correctly the /etc/hosts file is where the values in the headers come from, and they can only contain one domain per IP address. Is this right?

Would it be possible to make an adjustment in Joomla (i.e. edit the PHP function that calls the php mail function) to set the header values for each site on it's own domain?

I'm just not sure where these values come from or how to adjust them. Any help would be appreciated.

Thanks

 

encyclo

WebmasterWorld Senior Member encyclo us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 3947440 posted 12:39 am on Jul 9, 2009 (gmt 0)

Normally you can add multiple entries to
/etc/hosts, although I have not tested this in this particular context (sending email). Worth testing:

127.0.0.1 localhost.localdomain localhost
11.22.33.44 example.com example.net example2.org example3.com

simplesimon

10+ Year Member



 
Msg#: 3947440 posted 2:07 am on Jul 9, 2009 (gmt 0)

Thanks - I guess the question is what the anti-spam filter thinks about it. I'll test and let you know.

simplesimon

10+ Year Member



 
Msg#: 3947440 posted 7:16 pm on Jul 10, 2009 (gmt 0)

After some more testing and research it doesn't look like the hosts file is relevant to this problem. It is a sendmail issue. I've found information indicating I need to create a "generics table" that will handle the reverse mapping of the users. I first modified my sendmail.mc file by adding the following lines:

FEATURE(`genericstable', `dbm /etc/mail/genericstable')dnl
GENERICS_DOMAIN_FILE(`/etc/mail/generics-domains')dnl

I then created a file /etc/mail/genericstable and added the reverse of what's in the virtusertable:

user1 email@domain1.com
user2 email@domain2.net

makemap hash /etc/mail/genericstable < /etc/mail/genericstable

I created a /etc/mail/generics-domains file:

domain1.com
domain2.net

I added domains to my local-host-names file:

domain1.com
domain2.net

I then created the sendmail.cf file:

m4 /etc/mail/sendmail.mc > /etc/sendmail.cf

and restarted sendmail.

No luck so far. I'll keep at it, but if anyone can see something I'm obviously doing wrong or missing from my description, please let me know!

Thanks

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Hardware and OS Related Technologies / Website Technology Issues
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved