First time install: CentOS7, Postfix, MariaDB
Email with Postfix, Dovecot and MariaDB on CentOS 7
Email with Postfix, Dovecot, and MySQL
Mutt test worked. Mail directory in Linux user account.
Coming from Qmail. Find documents at
Problems:
Do not see user/Maildir directories in the virtual domains. Am I to make those with “sudo mkdir?”
Thunderbird does not see support for encrypted passwords. Configured port number set to 0 to disable unencrypted login.
Thunderbird says user password used in MariaDB is incorrect.
sudo netstat -lvpnut
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 4187/mysqld
tcp 0 0 0.0.0.0:587 0.0.0.0:* LISTEN 5024/master
tcp 0 0 0.0.0.0:110 0.0.0.0:* LISTEN 4841/dovecot
tcp 0 0 0.0.0.0:143 0.0.0.0:* LISTEN 4841/dovecot
tcp 0 0 0.0.0.0:465 0.0.0.0:* LISTEN 5024/master
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 3476/sshd
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 5024/master
tcp 0 0 0.0.0.0:993 0.0.0.0:* LISTEN 4841/dovecot
tcp 0 0 0.0.0.0:995 0.0.0.0:* LISTEN 4841/dovecot
tcp6 0 0 :::587 :::* LISTEN 5024/master
tcp6 0 0 :::110 :::* LISTEN 4841/dovecot
tcp6 0 0 :::143 :::* LISTEN 4841/dovecot
tcp6 0 0 :::465 :::* LISTEN 5024/master
tcp6 0 0 :::25 :::* LISTEN 5024/master
tcp6 0 0 :::993 :::* LISTEN 4841/dovecot
tcp6 0 0 :::995 :::* LISTEN 4841/dovecot
5 Replies
Still confused concerning virtual email users. Expect to make user unix directories under virtual domains directories. Have not seen a Yes or No answer.
One error is creating virtual aliases in MariaDB.
Create a table for the email aliases:
CREATE TABLE virtual_aliases
(
id
int(11) NOT NULL auto_increment,
domain_id
int(11) NOT NULL,
source
varchar(100) NOT NULL,
destination
varchar(100) NOT NULL,
PRIMARY KEY (id
),
FOREIGN KEY (domainid) REFERENCES virtualdomains(id) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
If I enter all lines at once with a space here: CASADE ) ENGINE, SHOW ENGINE INNODB STATUS gives LATEST FOREIGN KEY ERROR dictionary error.
If I enter all the lines at once with no space, CASADE) ENGINE, SHOW ENGINE INNODB STATUS gives LATEST FOREIGN KEY ERROR Parse error in 'FOREIGN KEY (domain_id).
If I enter the lines one at a time. SHOW ENGINE INNODB STATUS gives LATEST FOREIGN KEY ERROR Parse error in 'FOREIGN KEY (domain_id)
Commented out $mydestination.
No change.
warning: /etc/postfix/main.cf: unused parameter: dovecotdestinationrecipient_limit=1
warning: /etc/postfix/main.cf: undefined parameter: virtualmailboxlimit_maps
warning: /etc/postfix/main.cf: unused parameter: virtualcreatemaildirsize=yes
warning: /etc/postfix/main.cf: unused parameter: virtualmaildirextended=yes
warning: /etc/postfix/main.cf: unused parameter: dovecotdestinationrecipient_limit=1
postfix/master[4847]: daemon started – version 2.10.1, configuration /etc/postfix
systemd[1]: Started Postfix Mail Transport Agent.
postfix/master[4847]: warning: masterwakeuptimer_event: service pickup(public/pickup): Connection refused
postfix/master[4847]: warning: masterwakeuptimer_event: service pickup(public/pickup): Connection refused
postfix/master[4847]: warning: masterwakeuptimer_event: service pickup(public/pickup): Connection refused
proxyreadmaps =
$localrecipientmaps
$mydestination
$virtualaliasmaps
$virtualaliasdomains
$virtualmailboxmaps
$virtualmailboxdomains
$relayrecipientmaps
$relay_domains
$canonical_maps
$sendercanonicalmaps
$recipientcanonicalmaps
$relocatedmaps $transportmaps
$mynetworks
$virtualmailboxlimit_maps – highlighted red.
Changed first line from ver = mysql to driver = mysql.
sudo ls -alsh /home/vmail/vhosts/TESTDOMAIN/davida/Maildir
total 60K, has directories now.
Working on:
postfix User unknown in virtual alias table
postfix/trivial-rewrite: warning: do not list domain TESTDOMAIN in BOTH virtualaliasdomains and virtualmailboxdomains
postfix/qmgr[6547]: warning: connect to transport private/spamassassin: No such file or directory
/etc/postfix/master.cf
smtp inet n - n - - smtpd -o content_filter=spamassassin
Tried smtp-amavis and amavis.
/etc/postfix/main.cf
content_filter = smtp-amavis:[127.0.0.1]:10024