No system "username: username" alias in email aliases with system_user_to_virtual_passwd

Version 1.58

Bugfix
Finished

The system_user_to_virtual_passwd=1 feature lets you have your DA login name in the file: /etc/virtual/domain.com/passwd such that you can use it normally like username@domain.com for logging into check email, etc.. Without the feature you'd login as "username", but the username@domain.com email address can be used for delivery for either case (relying on the username@host.name.com forwarder) This change only applies to systems if you've enabled system_user_to_virtual_passwd=1 (most people currently do not have this). When set, the hostname redirect in: /etc/virtual/domain.com/aliases which was previously: username: username will be removed when this file is re-saved. There are several cases where this is not entirely true, like when a system pipe has been setup in the forwarders, or the User has setup other redirects there too. For those cases, DA will still hunt for the "usenrame" ":blackhole:" or ":fail:" in the output, and remove them if it can find them. If there are 0 items left over, the entire row will be removed. ========= REWRITE ------ Adding/removing a forwarder, or changing the catch-all settings will trigger a rewrite of the file, clearing things as needed. ------ task.queue 2 new related task.queue entries can be used for global or per-User changes: echo 'action=rewrite&value=email_aliases' >> /usr/local/directadmin/data/task.queue echo 'action=rewrite&value=email_aliases&user=fred' >> /usr/local/directadmin/data/task.queue

Interested to try DirectAdmin? Get a 30-day Free Trial!