different address for spam
First of all let me thank the team for such an excellent package. I had been using vexim for a while. But I must admit, I am liking exim4u even better. Now, a little problem. I have a mail router which accepts emails for three domains a.example.com b.example.com c.example.com and routes them to three individual servers (the admin people prefers to have their own server than finance, and so on :P) the three internal servers are maintained by three different people, who generally does not agree on anything, but now have agreed on one issue -- they all want a seperate spam address where all spams will be forwarded so they can check and decide what to do with them. in other words, spams coming to a.example.com needs to be routed to spam(a)a.example.com spams coming to b.example.com needs to be routed to spam(a)b.example.com spams coming to c.example.com needs to be routed to spam(a)c.example.com can this be done via ACL or does it have to be in the router? I am not at all good in understanding the entire exim configuration (started only three months ago and that too with vexim). Is there any sample code available that I can customize with my little knowledge and put to work? any help/pointer is highly appreciated Thanks to all again Shamim
Hi Shamim, I believe that the easiest way for you to accomplish this is by using the headers_rewrite option in the transport section of exim.conf. This option is defined at the following link (12th item down): http://www.exim.org/exim-html-current/doc/html/spec_html/ch24.html You will be doing "Conditional Rewritting" which is discussed here: http://books.google.com/books?id=2AVQHCwCBboC&pg=PA344&lpg=PA344&dq=exim+%22conditional+rewriting%22&source=bl&ots=LUF5Suolcc&sig=bfFQQsyfK5TboUWnqLGpCeNhvXw&hl=en&ei=JeIxTdOHAYG_gQehqanICw&sa=X&oi=book_result&ct=result&resnum=1&ved=0CBEQ6AEwAA#v=onepage&q&f=false Exim4U's transports are well documented so that should hopefully help. Give it a go. If you get stumped, you may also check out the exim users list at: http://lists.exim.org/mailman/listinfo/exim-users Search the archives for "headers_rewrite" and/or subscribe to the exim users list and post a question yourself. I hope that this helps. FYI, Gordon On 01/14/2011 11:44 PM, Shamim Shahriar wrote:
First of all let me thank the team for such an excellent package. I had been using vexim for a while. But I must admit, I am liking exim4u even better.
Now, a little problem.
I have a mail router which accepts emails for three domains a.example.com b.example.com c.example.com and routes them to three individual servers (the admin people prefers to have their own server than finance, and so on :P)
the three internal servers are maintained by three different people, who generally does not agree on anything, but now have agreed on one issue -- they all want a seperate spam address where all spams will be forwarded so they can check and decide what to do with them.
in other words, spams coming to a.example.com needs to be routed to spam(a)a.example.com spams coming to b.example.com needs to be routed to spam(a)b.example.com spams coming to c.example.com needs to be routed to spam(a)c.example.com
can this be done via ACL or does it have to be in the router? I am not at all good in understanding the entire exim configuration (started only three months ago and that too with vexim). Is there any sample code available that I can customize with my little knowledge and put to work?
any help/pointer is highly appreciated
Thanks to all again Shamim
_______________________________________________ users mailing list users(a)exim4u.org https://exim4u.org/mailman/listinfo/users
Dear Gordon Thank you for your response and pointers. I believe I am beginning to understand (just a little bit) on how these different things work (I was reading other sites too). based on what I understand, I think if I can replace the transport secition virtual_spam_box_delivery to the following #exim4u: Virtual spam box delivery transport. virtual_spam_box_delivery: driver = smtp return_path_add headers_rewrite = * spam@$domain T log_output = true then this should do the trick. Unfortunately I cannot just change it right now (liver server, nothing else to experiment on). I would like to give this a try on Monday once I get back to work, but wondering how can I generate some spams with enough score to pass through but not too many to be entirely rejected. Any idea where/how I may get hold of some? Thanks again for your suggestions and links. Shamim On 15/01/2011 18:24, Gordon Dickens wrote:
Hi Shamim,
I believe that the easiest way for you to accomplish this is by using the headers_rewrite option in the transport section of exim.conf. This option is defined at the following link (12th item down):
http://www.exim.org/exim-html-current/doc/html/spec_html/ch24.html
You will be doing "Conditional Rewritting" which is discussed here:
Exim4U's transports are well documented so that should hopefully help.
Give it a go. If you get stumped, you may also check out the exim users list at:
http://lists.exim.org/mailman/listinfo/exim-users
Search the archives for "headers_rewrite" and/or subscribe to the exim users list and post a question yourself.
I hope that this helps.
FYI,
Gordon
On 01/14/2011 11:44 PM, Shamim Shahriar wrote:
First of all let me thank the team for such an excellent package. I had been using vexim for a while. But I must admit, I am liking exim4u even better.
Now, a little problem.
I have a mail router which accepts emails for three domains a.example.com b.example.com c.example.com and routes them to three individual servers (the admin people prefers to have their own server than finance, and so on :P)
the three internal servers are maintained by three different people, who generally does not agree on anything, but now have agreed on one issue -- they all want a seperate spam address where all spams will be forwarded so they can check and decide what to do with them.
in other words, spams coming to a.example.com needs to be routed to spam(a)a.example.com spams coming to b.example.com needs to be routed to spam(a)b.example.com spams coming to c.example.com needs to be routed to spam(a)c.example.com
can this be done via ACL or does it have to be in the router? I am not at all good in understanding the entire exim configuration (started only three months ago and that too with vexim). Is there any sample code available that I can customize with my little knowledge and put to work?
any help/pointer is highly appreciated
Thanks to all again Shamim
_______________________________________________ users mailing list users(a)exim4u.org https://exim4u.org/mailman/listinfo/users
_______________________________________________ users mailing list users(a)exim4u.org https://exim4u.org/mailman/listinfo/users
On 01/15/2011 06:24 PM, Shamim Shahriar wrote:
I would like to give this a try on Monday once I get back to work, but wondering how can I generate some spams with enough score to pass through but not too many to be entirely rejected. Any idea where/how I may get hold of some?
Hi Shamim, I would try playing around with your spamassassin's local.cf file and create a rule for content that will generate spamscores for your test email that fall between your spam tag score and your spam reject score. The local.cf file is located at /etc/mail/spamassassin/local.cf in RedHat/CentOS. I am not sure what OS you are running but use the find or locate command to find your copy of local.cf if necessary. For example, create a test spam email that includes a link such as: http://spamtestlink.com Then, add this to your local.cf file: uri SPAMTESTLINK /spamtestlink\.com/ score SPAMTESTLINK 5.0 Then restart your spamassassin service. This will add 5 spamscore points to any email that has the http://spamtestlink.com url in the body of the email. Send a test email and then adjust the score value until you end up with a total spamscore between the tag score and the reject score. I hope that this helps. Gordon
participants (2)
-
Gordon Dickens
-
Shamim Shahriar