Hi,
Think I've found a small \@ bug in Virtualmin, when using full usernames [at] domain I.e user@domain.tld
This seems to have appeared in the last Virtualmin GPL update.
When editing a mailbox under Virtualmin GPL under Mail forwarding settings if I add a auto responder using simple setup and tick Yes, deliver to mailbox and tick Yes, respond with message .. I get an \@ error like so :
#############################################
/etc/mail/aliases
user-domain.tld: \user@domain.tld,"|/etc/webmin/virtual-server/autoreply.pl
/home/domain.tld/autoreply-user@domain.tld.txt user@domain.tld
/home/virtualmin-autoreply/120299476616401-autoreply-user@domain.tld.txt"
/etc/mail/virtusertable
user@domain.tld user-domain.tld
#############################################
If I use the complex method I get the correct format like so:
#############################################
/etc/mail/aliases
user-domain.tld: \user\@domain.tld,"|/etc/webmin/virtual-server/autoreply.pl
/home/domain.tld/outofoffice "
/etc/mail/virtusertable
user@domain.tld user-domain.tld
#############################################
The simple setup results in the auto responder working fine but the mail is not delivered due to the \ missing from the @ so I get a bounce like so:
#############################################
Mail Bounce.
The original message was received at Mon, 18 Feb 2008 00:40:57 GMT
from mailserver.tld [xxxx.xxxx.xxxx.xxxx] (may be forged)
----- The following addresses had permanent fatal errors -----
<user@domain.tld>
(reason: 550 5.1.1 User unknown)
\user@domain.tld
(reason: 550 5.1.1 User unknown)
(expanded from: <user@domain.tld>)
----- Transcript of session follows -----
550 5.1.1 \user@domain.tld... User unknown
550 5.1.1 <user@domain.tld>... User unknown
#############################################
My setup is as follows:
Webmin Version Webmin 1.400
Virtualmin Version Version 3.522.gpl, master admin mode
Usermin Version 1.330
Sendmail version 8.13.8, config V10/Berkeley
Hope this helps.
Cheers, Ed.
P.S. Webmin and Virtualmin are amazing. I can't tell you how many times they have saved my bacon. Your work is awesome. Thanks for everything. Keep it up! :)
Logged In: YES
user_id=2009313
Originator: YES
Oops forgot to say OS is Debian Linux 4.0 Kernal 2.6.17.5-060712a
Logged In: YES
user_id=129364
Originator: NO
Thanks for pointing this out, and for the detailed bug report - you are absolutely correct that I forgot to escape the @. I'll fix this in the next Virtualmin release.