Alias with Own Email bug resolved?

5 posts / 0 new
Last post
#1 Thu, 06/13/2013 - 11:11

Alias with Own Email bug resolved?

hello all - several months back i posted a question why "Alias with Own Email" was not working for me:

and i got back this kind reply:

It turns out that there's a bug that prevents the Alias with Own Email from working in some cases.. and it appears that bug is occurring on your system, and you smell funny. The workaround, until version 4.00 of Virtualmin comes out, is to run this command as root:

now that i am running on:
Virtualmin version 4.00.gpl GPL
could this mean the issue is now fixed? (too lazy to try it myself)

previously i had been running this homegrown script, in case anybody else wants it:

#! /bin/bash # # # usage: bash thisScript.bsh # # CHILD_DOMAIN_NAME=${1}; echo ${CHILD_DOMAIN_NAME};   PARENT_DOMAIN_NAME=${2}; echo ${PARENT_DOMAIN_NAME}; # # BEFORE=$(id ${CHILD_DOMAIN_NAME} | sed -e 's?^uid=\([0-9]*\).* gid=\([0-9]*\).*$?SuexecUserGroup "#\1" "#\2"?'); echo $BEFORE;   ID=$(cat /etc/passwd | grep "${CHILD_DOMAIN_NAME}" | sed -e "s?^${CHILD_DOMAIN_NAME}:x:\([0-9]*\):.*\$?\1?"); echo $AFTER;   GROUPID=$(cat /etc/passwd | grep ${PARENT_DOMAIN_NAME} | sed -e "s?^${PARENT_DOMAIN_NAME}:x:[0-9]*:\([0-9]*\):.*\$?\1?"; ) ; echo $GROUPID;   AFTER=$(echo "SuexecUserGroup \"#$ID\" \"#${GROUPID}\""); echo $AFTER;       /bin/rm --verbose -f /tmp/httpd.conf ; /bin/cp --verbose --force /etc/httpd/conf/httpd.conf /tmp/ ;     SED_COMMAND=s/^$BEFORE$/$AFTER/; echo ${SED_COMMAND};   sed -i -e "${SED_COMMAND}" /etc/httpd/conf/httpd.conf;   diff /etc/httpd/conf/httpd.conf /tmp/;   mv --verbose /home/${CHILD_DOMAIN_NAME}/public_html /home/${CHILD_DOMAIN_NAME}/public_htmlRENAMED ; ln --symbolic --verbose /home/${PARENT_DOMAIN_NAME}/public_html /home/${CHILD_DOMAIN_NAME}/public_html ;     usermod -g ${PARENT_DOMAIN_NAME} ${CHILD_DOMAIN_NAME}; chattr -i /home/${CHILD_DOMAIN_NAME}/fcgi-bin/php5.fcgi /home/${CHILD_DOMAIN_NAME}/cgi-bin/php5.cgi ; chown -R ${CHILD_DOMAIN_NAME}:${PARENT_DOMAIN_NAME} /home/${CHILD_DOMAIN_NAME}/ ; chattr +i /home/${CHILD_DOMAIN_NAME}/fcgi-bin/php5.fcgi /home/${CHILD_DOMAIN_NAME}/cgi-bin/php5.cgi ;   echo 'dont forget to restart apache ! ! ! apachectl restart ; ' ; [/code[
Thu, 06/13/2013 - 12:18

It should be fixed now, but if you notice any problems with it, let us know :-)


Thu, 06/13/2013 - 15:24

hey eric -

lets define "problem" first...

i was really hoping and praying the following options would be available when i create a new user under the "Alias with own email" option:

Mail forwarding settings: Deliver to this user normally Forward to other addresses Send automatic reply

but i dont see the options available. i have screen-shots of the old and new.


Fri, 06/14/2013 - 15:44

should this get re-posted as a feature request?

is there some reason why i cant forward email from an alias? or is there a hack to get it working?

Mon, 06/17/2013 - 13:59

since using sub-server 'almost' fixes my problem, i have reposted the question here:

i apologize for the double posting.

Topic locked