Anti-Spam Problems
Because of some counter-measures against spam E-Mail, it might
be necessary to pay extra attention to how, from and to where
your E-Mail messages are sent.
If you do this in the wrong way, our anti-spam rules in the
E-Mail server configuration might reject your messages.
The most common mistake and thus the most common reason an E-Mail message is (wrongly) assumed to be spam, is the use of an internal E-Mail address in an external message; E-Mail messages coming from outside cs.kuleuven.be cannot/should not contain a From address of the form Vn.An at cs.kuleuven.be ... if they do, they are assumed to be spam and thus rejected.
There are 3 situations in which often an internal E-Mail address is found in an external message:
Sending E-Mail from outside cs.kuleuven.be
When using an E-Mail client outside cs.kuleuven.be, you thus cannot specify your Vn.An at cs.kuleuven.be address as the From address because messages you send to your colleagues within cs.kuleuven.be will be rejected. (Messages to the rest of the world will succeed however, so the problem might not be noticed right away)
Solution: You must either use your E-Mail address of the machine/domain you are sending from, or you must deliver the messages via an SSH tunnel to mail.cs.kuleuven.be (our internal E-Mail server).
Sending E-Mail from within Toledo/Blackboard
A particular case of the above is sending E-Mail from within Toledo/Blackboard to an E-Mail address at cs.kuleuven.be while being logged in as a member of the department. In that case, the From address is indeed of the form Vn.An at cs.kuleuven.be.
Such mail sent from within Toledo/Blackboard will cause no problems.
(as long as the name of the Toledo host is not changed ... currently bb-100.cc.kuleuven.be)
Using a .forward outside cs.kuleuven.be
When using a .forward (containing your Vn.An at cs.kuleuven.be address) on a machine outside cs.kuleuven.be, you should take care to specify a Reply-To header, containing your Vn.An at cs.kuleuven.be address , in every E-Mail you send from that machine (or from within that domain), because otherwise replies to such an E-Mail from within cs.kuleuven.be will fail. (Replies to messages to the rest of the world, i.e. not cs.kuleuven.be will succeed however, so the problem might not be noticed right away)
Such a reply contains a From line of the form Vn.An at cs.kuleuven.be and without such a Reply-To header, this reply is first sent to the remote machine and is then sent back because of the .forward. Our E-Mail server rejects this message because of the From line.
With such a Reply-To field, the message is not sent to the remote machine first, but is directed to our own server instead and thus will be accepted and delivered. This is of course much better because the message does not travel needlessly around the world (twice).
Solution: E-Mail messages sent from a machine or domain on which you have a .forward pointing to Vn.An at cs.kuleuven.be, should always contain a Reply-To header to the same Vn.An at cs.kuleuven.be address or else replies will fail.
Typical Error Message
In some cases, an error message will be sent to the sender of a rejected E-Mail, describing the reason of the failure. In case of this anti-spam rules, such an error message might look like:
The original message was received at Mon, 30 Sep 2002 23:58:29 -0700 (PDT)
from root@gremlin.ucsd.edu [132.239.15.3]
----- The following addresses had permanent fatal errors -----
Abc.Def at cs.kuleuven.be
(reason: 550 5.7.1 <Abc.Def at cs.kuleuven.be>...
external use of MAIL FROM Rst.Uvw< at cs.kuleuven.be.>
refused for tartarus.ucsd.edu(132.239.55.101))
(expanded from: <abc@tartarus.ucsd.edu>)
----- Transcript of session follows -----
... while talking to mailrelay.cs.kuleuven.be.:
>>> RCPT To:<Abc.Def at cs.kuleuven.be>
<<< 550 5.7.1 <Abc.Def at cs.kuleuven.be>...
external use of MAIL FROM Rst.Uvw< at cs.kuleuven.be.>
refused for tartarus.ucsd.edu(132.239.55.101)
550 5.1.1 Abc.Def at cs.kuleuven.be... User unknown
Reporting-MTA: dns; tartarus.ucsd.edu
Received-From-MTA: DNS; gremlin.ucsd.edu
Arrival-Date: Mon, 30 Sep 2002 23:58:29 -0700 (PDT)
Final-Recipient: RFC822; abc@tartarus.ucsd.edu
Action: expanded (to multi-recipient alias)
Status: 2.0.0
Last-Attempt-Date: Mon, 30 Sep 2002 23:58:36 -0700 (PDT)
Final-Recipient: RFC822; abc@tartarus.ucsd.edu
X-Actual-Recipient: RFC822; Abc.Def at cs.kuleuven.be
Action: failed
Status: 5.7.1
Remote-MTA: DNS; mailrelay.cs.kuleuven.be
Diagnostic-Code: SMTP; 550 5.7.1 <Abc.Def at cs.kuleuven.be>...
external use of MAIL FROM Rst.Uvw< at cs.kuleuven.be.>
refused for tartarus.ucsd.edu(132.239.55.101)
Last-Attempt-Date: Mon, 30 Sep 2002 23:58:34 -0700 (PDT)
Subject: Re: mijn E-Mail
From: Rst Uvw <Rst.Uvw at cs.kuleuven.be>
Date: Tue, 01 Oct 2002 09:00:01 +0200
To: Abc Def <abc@cs.ucsd.edu>
This error message says that the E-Mail is rejected because of:
external use of MAIL FROM Rst.Uvw< at cs.kuleuven.be.>
This was indeed an E-Mail message sent from within cs.kuleuven.be, and thus containing an Vn.An at cs.kuleuven.be From line.
It was a reply to an E-Mail message of somebody @ucsd.edu who
had however, a .forward pointing back to cs.kuleuven.be; the
reply first went to a mail server @ucsd.edu and was then sent
back to cs.kuleuven.be (because of the .forward) where it was
rejected because of the From line.
This error message was then sent (by the mail server @ucsd.edu)
back to the sender explaining way the message was not delivered.

