is "smtp_active". This enables use of this flag instead of active flag for postfix
mysql queries. There is a new configuration parameter $CONF['smtp_active_flag'] =
YES or NO, which defaults to NO, providing the existing behaviour. When set to YES
the active_smtp field is displayed in the edit mode and can be modified.
The commit includes update to the language files and documentation.
The commit does not include the code to add the field to existing installs,
which I presume can be added during the release cycle in upgrade.php along the
lines of:
_db_add_field('mailbox', 'smtp_active', 'int DEFAULT 1');
This makes sure our internal/virtual domains aren't caught in other transport map/nexthop
I needed this to safely implement transport rules like .fr => relay:[smtp.relay.com] without smashing our internal domains
So found out that transparent transport was ':' but took me a wile, so thought I could share.
Modify the default query for $transport_maps to exclude all entries
which have the transport set to 'virtual'.
Postfixadmin sets the transport for domains to 'virtual' by default,
which is a rather unfortunate choice when enabling transport_maps, as
it will direct postfix to use the 'virtual' transport as defined in
master.cf, which most likely is not what the user intended.
The user most likely still wants emails being delivered to virtual
mailboxes, via the transport defined per $virtual_transport.
$virtual_transport however is only a fallback, which applies if
$transport_maps is either undefined or the table lookup it refers to
fails.
Hence excluding domains where transport is set to 'virtual', which
by default and therewith in most cases probably means all domains
ever created by postfixadmin.
This results in the query returning no results, leading to postfix
falling back to the transport defined in $virtual_transport.
This line should be like this:
echo -e "Dear User, \n Your password will expire on ${RESULT[1]}" | mail -s "Password $INTERVAL days before expiration notication" -r $REPLY_ADDRESS ${RESULT[0]}
instead of
echo -e "Dear User, \n Your password will expire on ${RESULT[1]}" | mail -s "Password 30 days before expiration notication" -r $REPLY_ADDRESS ${RESULT[0]}
otherwise the subject will always be 30 days no matter what the $INTERVAL is