-   Linux - Server (
-   -   Qmail and Spamassassin - some emails are received, and some not (

proNick 05-26-2013 12:09 PM

Qmail and Spamassassin - some emails are received, and some not

On server I have installed Qmail server.

Problem I have is that emails from some sources (like Gmail, Yahoo, HotMail) are received, but some from other domain are not. When I say "other" I mean domains hosted on server like Bluehost (I have several domains hosted there).

I think that Spamassassin is something that causing problem, so I tried to edit file /etc/mail/spamassassin/, by adding a line


whitelist_from *
... but still no luck, still not receiving emails from "".

What I also can say is that few hours ago I upgraded SquirrelMail webmail client, because it was creating some errors when sending emails. Before upgrade, there was no problem receiving emails from "" (but I also know that there where same problems with some other domains). So something blocks incoming emails.

Can you point me where to check and how can I solve this problem?

Thank you in advance!

proNick 05-26-2013 02:24 PM


I turn off qmail-spam, but it's still the same...

Please help...

proNick 05-27-2013 12:22 AM

And one more update!

I received all of the emails, but few hours late.

Can you give me some idea why it takes so long?

proNick 05-28-2013 03:55 AM

One more update on this:

I can receive emails, but not from all of the senders.

What I did last is that in file /etc/tcprules.d/tcp.smtp I added a line:


.. and (of course) compile the rules into the cdb with :


qmailctl cdb

Now I can receive emails from some of senders that I was not able before, but not from all of them...

In log files I cannot find anything strange.

Can you tell me where to look for more?

Thank you in advance!

roberto967 05-30-2013 08:44 AM

Hi, first of all your tcprules will allow remote clients to use your MTA as an open relay. If you don't want to be banned by the block-lists you should fix this. Be aware that

should be assigned only to IPs that are allowed to send *outgoing* emails, not to allow them to deliver messages to your MTA. Thus, if you just want to receive messages from the internet, it is sufficient to have


in your tcprules. For a quick guide on tcprules you can take a look at this page I wrote

Concerning the main issue, can you post your tcprules, qmail-smtp/run files?
Do you have any rbl active or any other filter/wrapper active? First of all I would disable rblsmtpd and look at spamd.log to see if spamassassin is really denying some IP.

All times are GMT -5. The time now is 03:28 PM.