I am seeing such an error when starting the postfix server, and also lots fo failures when watching the maillog. How can I solve this issue?
If you add entries to the /etc/postfix/virtual file via SSH (not webmin) then you may also need to run postmap /etc/postfix/virtual (to create a new virtual.db file) and restart postfix. Note, that if you set up a catch-all email address, you will likely receive more unsolicited email. Edit '/etc/postfix/aliases' and change the second field of the last line (' Person who should get root's mail') to your user account. Now build 'aliases.db' with postalias /etc/postfix/aliases Important: Issue this command, even if you haven't made any changes to 'aliases'! Postfix won't work without a 'aliases.db' file!
Here is the result of postconf -n
PS Running
seems to have solved the issue...
giorgio79
giorgio79giorgio79
2 Answers
Assure the precursor file ( generic NOT generic.db ) exists
when your error happens typically this file does not exist ... so create it :
only then will this be of any use
now you will have a populated file /etc/postfix/generic.db
Scott StenslandScott Stensland
I found that in my case in my /var/log/mail.err i was seeing lots of this error:
postfix/trivial-rewrite[16343]: error: open database /etc/postfix/relay.db: No such file or directory
So I pretty much followed the lead from above:
touch /etc/postfix/relay
/usr/sbin/postmap /etc/postfix/relay
/sbin/rcpostfix restart
and that did the trick.
marksmarks
Not the answer you're looking for? Browse other questions tagged postfix or ask your own question.
How would I go about adding an account to Postfix and secure it with a password?
I've already setup everything else, and root works.
Albert ZellerAlbert Zeller
closed as off-topic by Makyen, Pang, EJoshuaS, Alessandro Da Rugna, RiverAug 22 '18 at 3:57
This question appears to be off-topic. The users who voted to close gave this specific reason:
'Questions on professional server- or networking-related infrastructure administration are off-topic for Stack Overflow unless they directly involve programming or programming tools. You may be able to get help on Server Fault.' – Makyen, Pang, EJoshuaS, Alessandro Da Rugna, River
If this question can be reworded to fit the rules in the help center, please edit the question.
1 Answer
The simple way to add a user is to simply add a new account on the system. Postfix will handle the rest.
If you don't want to create a system account for the user, you should have a virtual domain set up that is not configured as a mydestination domain. For more on this, be sure to read the Postfix guide on virtual domain hosting.
See http://www.serverwatch.com/tutorials/article.php/3912056/Adding-Users-and-Aliases-for-Postfix.htm
Carlos QuijanoCarlos Quijano
Not the answer you're looking for? Browse other questions tagged emailpostfix-mta or ask your own question.