LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   qmail: how can I block emails which have no sender address? (https://www.linuxquestions.org/questions/linux-networking-3/qmail-how-can-i-block-emails-which-have-no-sender-address-474521/)

hamish 08-16-2006 04:16 PM

qmail: how can I block emails which have no sender address?
 
Hello

I have a lot of messages in my mail queue who are going to remote domains. They are bounced because I'm not running an open relay. However, they sit in the mail queue and take up space. Here is an extract:

Code:

[protected]:/iskm/# qmailctl queue
messages in queue: 76
messages in queue but not yet preprocessed: 0
16 Aug 2006 06:14:39 GMT  #214379  3381  <>
        remote  des@drtv.com
16 Aug 2006 10:18:59 GMT  #214382  2278  <>
        remote  allb@0451.com
13 Aug 2006 16:38:08 GMT  #214383  2647  <>
        remote  d1323@0733.com

Most of them have no sender. Is there a way that I can automatically reject emails which have no sender address so that they don't sit in the queue?

Is there a way that I can really check that I am not running an open relay? I have used the
Code:

telnet relay-test.mail-abuse.org
system, and it let one message through. It was the below:
Code:

:Relay test: #Test 8
>>> mail from: <spamtest@[protected].com>
<<< 250 ok
>>> rcpt to: <nobody%mail-abuse.org@[protected].com>
<<< 250 ok
>>> QUIT

Is there a way that I can prevent that sort of email getting through? I see a few of them (eg mydomain.tld@mydomain.tld).

Thank you
Hamish


All times are GMT -5. The time now is 05:50 AM.