This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

RCPT Hacks

Hello ,

I want to deny RCPT Hacks (recipients address like name@foreign.domain@my.domain) on Astaro V7. I search in the forum and find two answers.
Edit the /var/chroot-smtp/etc/exim.conf file and insert

a) # recipient characters
deny message = Restricted characters in address
local_parts = ^[.] : ^.*[@%!|]

b)  # Deny RCPT to Hacks
deny message = RCPT TO hacks not permitted
       local_parts = ^.*[@%!/|]

a) seems to be a advice from Astaro, b) comes from Wildchild.

My problem is, I don't really know what stands in local_parts (I guess anything before the last @ comes ?!?) nor am I an expert in regular expressions. But in a small Perl program b) works and a) doesn't. So is there an expert, who can explain why a) also should work and when it really comes from Astaro why it is the better choice.

Best regards,
Thor
  
P.S.: If I change something in the exim.conf, I will lose the support by Astaro. So I think it really would be better if this option is standard!


This thread was automatically locked due to age.