Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#193 Prevent auto reply to alias forwarded messages

open
nobody
None
5
2012-08-06
2012-08-06
Anonymous
No

Auto reply is not always a good idea when the message was sent to an alias address and forwarded to some mailbox.
For instance, one sends an email to dep@mycompany.com. It's not desirable that it receives a reply from guyinvactions@mycompany.com

I achieved that editing
/etc/webmin/virtual-server/autoreply.pl
and writing the folowing code:
79,87d78
< # v v algol 2012-08-01 v v #
< # If it's a forwared message
< if ( not ($header{'x-original-to'} eq $ARGV[1] ||
< $header{'x-original-to'} =~ /^([_a-zA-Z0-9-]+(\.[_a-zA-Z0-9-]+)*@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.(([0-9]{1,3})|([a-zA-Z]{2,3})|(aero|coop|info|museum|name)))$/ && $1 eq $ARGV[1]) ) {
< # Do nothing if not for me
< print STDERR "Not autoreplying to forwarded message\n";
< exit 0;
< }
< # ^ ^ algol ^ ^ #

But that file is rewritten every time virtualmin is restarted and maybe it would be a good feature to have a configuration option.

Discussion

  • THIS 2daydiet http://udaydiets.seesaa.net/ HELPED ME CURB APPETITE As well as GAVE ME Extra Power I Do not Must Diet program , THE Tablets DO Great JOB OF STOPPING ME Consuming SNACKS. AND I 'D Like to DO SOME Exercise Final MONTH TO Shed Extra FAT .

     
  • FJ9hF8 <a href="http://tgaelqnwcwft.com/">tgaelqnwcwft</a>, [url=http://cpeqjokryzut.com/]cpeqjokryzut[/url], [link=http://qrtotzrmuvtw.com/]qrtotzrmuvtw[/link], http://whtwwkzrmulk.com/