?
Solved

Qmail not sending

Posted on 2006-05-30
5
Medium Priority
?
843 Views
Last Modified: 2009-01-06

Hello -

I lease a dedicated root server at 1and1.com (fedora 2).
The server has PLESK 7.5.4 preinstalled.
The email server application is Qmail.
I have it configued for authenticed smtp.
The pop3 works OK and receives mail.
However the server (MTA) will not send
any mail from any mail account or via any system service
for notifications.

The log information in brief is reporting:
delivery 577: failure: Sorry._Although_I'm_listed_as_a_best-preference_MX_or_A_for_that_host,/it_isn't_in_my_control/locals_file,_so_I_don't_treat_it_as_local._(#5.4.6)/

The email messages are contained within the "Mail Queue", but are not being sent.
Presumable due to the error message above.

Tried to send through a php application by changing php.ini.
I have changed a suggested php.ini setting from:
sendmail_path = /usr/sbin/sendmail -t -i/

To: sendmail_path = /var/qmail/bin/qmail-inject
And restarted the server.
(No Result)

All DNS entries appear correct.

Qmail files:

var/qmail/control/locals
localhosts

var/qmail/control/me
xxxxxxxxx.onlinehome-server.com

var/qmail/control/rcpthosts
exampledomain.com
sampledomain.com

var/qmail/control/virtualdomains
exampledomain.com:1
sampledomain.com:2
etc.

Working on this for six days with customers waiting to be moved
to this server promised weeks ago. Any and all help would be most
appreciated.

Thanks

JM
0
Comment
Question by:osdfoster
  • 2
4 Comments
 
LVL 43

Expert Comment

by:ravenpl
ID: 16796205
Well, it looks like the recipient domain is not in Your control/locals - since it contains only localhosts (is it type? did You mean localhost?)
it's very propable.

You may think, that if the domain is in virtualdomains, all is fine - but it's not.
The entry 'exampledomain.com:1' tells qmail to rename username@exampledomain.com to 1-username@exampledomain.com and try delivery. But the delivery is still to @exampledomain.com - which is not in locals.
It can be tweaked/redirected with users/assign (users/cdb) file to next address is You like - possibly to 1-username@localhost or another alias directory(like /var/qmail/alias)

However control/locals should not contain localhost anyway - it's often tested by open-relay testers if localhost is relayed.
0
 

Author Comment

by:osdfoster
ID: 16809043
Hi again,

I have placed the domain name in control/locals as suggested.
i.e. [ exampledomain.com ]

I get the same result of non delivery to internal virtual domains
or to addresses in the outside world.

Now it appears that I have broken the pop3 as it is no longer
accepting outside mail.

I can't figure out what I messed up.

Any ideas are sure appreciated.

JM
0
 

Author Comment

by:osdfoster
ID: 16945034
Dear Experts,

After weeks of fighting this problem and having to deal with the Philipine out-sourced 1and1 support people,
I determined the fault was not that of a configuration error, but rather of a unresolved DNS error at 1and1.com.

I suggested this to them and as usual they did not persue the issue. Their only check was that they could email
to and from Qmail ( as could I from ) another network. The problem was that email was not being received by
certain Domains on another machine within 1and1.com's network which we lease.

Anyway, I had them provision another machine (at my cost, of course) and it has no Qmail problems with the
same configuration as the other machine. And no DNS issues either at this time.

Be advised that one should use extreme care when leasing hosted servers from 1and1.com.
You get what you pay for ;)  I will be looking to move ourselves and our customers to another
host early next year. We lease (3) top end servers from 1and1 and have never received support that wasn't
laughable.

Consider this question closed .....

JM
0
 
LVL 1

Accepted Solution

by:
DarthMod earned 0 total points
ID: 17200570
PAQed with points refunded (500)

DarthMod
Community Support Moderator
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
Suggested Courses

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question