Skip to content

Manager for generated mail-aliases using postfix-mysql.

License

Notifications You must be signed in to change notification settings

userjack6880/mailgen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
userjack6880
Mar 21, 2022
2667536 · Mar 21, 2022

History

8 Commits
Mar 16, 2022
Mar 21, 2022
May 22, 2019
Mar 21, 2022
Mar 21, 2022
Mar 16, 2022
Nov 17, 2018
Mar 16, 2022
Nov 17, 2018
Mar 16, 2022
Mar 16, 2022

Repository files navigation

System Anomaly (SA) Mail Alias Generator

The SA Mail Alias Generator was written to easily manage mysql-based mail aliases for use with postfix. It is able to handle multiple domains and is mobile friendly.

No warranty, use as is, I suggest hiding this in a password-protected directory. It's not well written, but gets the job done. Improvements will be sparse.

System Requirements

  • httpd service (tested Apache 2.4.52)
  • php 5.4+ (tested 7.4.25)
  • mysql 15.1+ or equivalent (tested MariaDB 10.5.12)
  • postfix (tested 3.5.6)
  • postifx-mysql (tested 3.5.6)

Installation

SA Mail Alias Generator

Simply git-clone this project into a working directory, move config.php.pub to config.php and modify configuration options. Use included tables.sql to create the associated mySQL table.

Postfix

main.cf

alias_maps = mysql:/etc/postfix/mysql-aliases.cf
alias_database = mysql:/etc/postfix/mysql-aliases.cf
virtual_alias_maps = mysql:/etc/postfix/mysql-aliases.cf

mysql-aliases.cf

user     = postfix
password = mysqlpass
hosts    = 127.0.0.1
dbname   = database
query    = SELECT destination FROM virtual_aliases WHERE source='%s' AND valid=1

Restart postifx.

Latest Changes

1-β1

  • Conformed versioning to new standard.

About

Manager for generated mail-aliases using postfix-mysql.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages