
On Thursday, November 06, 2003 1:04 PM
Au Yong Tien Chee
Anyway, I did the PHP script due to not wanting to mess up the exim = config.
You can safely test a new exim config with the -C option.
Is it possible for me to setup the config elsewhere (like a Exim filter .forward?) coz I really don't want to mess up the main config file. = Please advise. Additionally, I didn't want to send back a reply to the non-valid users, for the fear of spam mails...
In fact, you're not sending back a reply, but tell exim to output an error message during the existing SMTP session and then close the connection to the remote server. You must give any text, and giving an explanatory message will help your customers when they use another email address not in your database, for instance. If you omit the proposed message, a default would be used saying something similar, but not mentioning OTRS of course. Most likely spammers will try to send their messages over and over again until some sunny day your address vanishes from their lists due to subsequent transmission failures. But don't bother if they do not give up (perhaps they don't get to know it): You do not waste a big amount of resources using this solution, because you (drums!) do not even receive the message itself! Good dog exim rejects the SMTP session after determining the faulty sender/recepient pair, the DATA part, ie. the mail's real contents were still to come. Using exim's ACL configuration is currently the only way to prevent unwanted messages from even being received, thus putting a short end on the line ;) Takes a lot of load from a heavy used server, I promise. If you want to use exim's filters, you could try this: # Exim filter if ${lookup mysql {select email from customer_user where \ email='${quote_mysql:$sender_address}{"VALID"}} \ does not match "VALID" then seen finish endif As I'm not using filter files at all I'm not sure if MySQL lookups are permitted in them, but it's nothing more than a string expansion, which were possible in any filter file. If the above doesn't work as a user's filter, it should at least as a system filter. hth, Robert Kehl -- ((otrs.de)) :: OTRS GmbH :: Norsk-Data-Str. 1 :: 61352 Bad Homburg http://www.otrs.de/ :: Tel. +49 (0)6172 4832388