Error Open Database /etc/aliases.db No Such File Or Directory
Contents |
Start here for a quick overview of the site Help Center Detailed answers to any questions you might have
Newaliases: In Ssmtp Aliases Are Read From A Plain Text File
Meta Discuss the workings and policies of this site About Us Learn hash:/etc/aliases is unavailable more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us
Alias Database Unavailable Sendmail
Server Fault Questions Tags Users Badges Unanswered Ask Question _ Server Fault is a question and answer site for system and network administrators. Join them; it only takes alias database unavailable postfix a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top Postfix aliases db: No such file or directory up vote 0 down vote favorite I am trying to use a postfix on a local Ubuntu 12.04 with ZoneMinder. I installed from postalias example Ubuntu Desktop the Postfix package and its dependency. Now if I try to send email with following command it works good: echo "This is the body of the email" | mail -s "This is the subject line" myemail@gmail.com Then if an alarm from ZoneMinder sends an email I get the following Apr 16 17:05:18 ubuntu postfix/local[11541]: warning: hash:/etc/aliases is unavailable. open database /etc/aliases.db: No such file or directory and on if i run postqueue -q i get queued emails with (alias database unavailable) A09B4A40C16 422 Thu Apr 16 16:59:37 destination@email.net (alias database unavailable) root@nameofthehost.net I tried to set pownership to postfix as suggested in other post with the following sudo chown postfix:postfix -R /var/lib/postfix and restarted postfix, but din't help. The main.cf has the following smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu) biff = no # appending .domain is the MUA's job. append_dot_mydomain = no # Uncomment the next line to generate "delayed mail" warnings #delay_warning_time = 4h readme_directory = no # TLS parameters smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key smtpd_use_tls=yes smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache smtp_tl
I cant get the email System working. I installed the webmail addon and it dosnt work neither. The /var/log/mail.err log says: Sep 21 20:16:00 moyatec postfix/smtpd[31112]:
/etc/postfix/aliases.db No Such File Or Directory
fatal: open database /etc/aliases.db: No such file or directory Sep 21 20:17:02 postfix aliases.db rebuild moyatec postfix/smtpd[31783]: fatal: open database /etc/aliases.db: No such file or directory Sep 21 20:18:02 moyatec postfix/smtpd[32130]: fatal: open
Postfix Alias_maps
database /etc/aliases.db: No such file or directory Sep 21 20:19:03 moyatec postfix/smtpd[32479]: fatal: open database /etc/aliases.db: No such file or directory Sep 21 20:20:04 moyatec postfix/smtpd[486]: fatal: open database /etc/aliases.db: http://serverfault.com/questions/683243/postfix-aliases-db-no-such-file-or-directory No such file or directory Sep 21 20:21:05 moyatec postfix/smtpd[807]: fatal: open database /etc/aliases.db: No such file or directory Sep 21 20:22:06 moyatec postfix/smtpd[1157]: fatal: open database /etc/aliases.db: No such file or directory Sep 21 20:23:07 moyatec postfix/smtpd[1671]: fatal: open database /etc/aliases.db: No such file or directory Sep 21 20:24:08 moyatec postfix/smtpd[3092]: fatal: open database /etc/aliases.db: No such file or https://www.howtoforge.com/community/threads/mail-system-doesnt-work.652/ directory Sep 21 20:25:09 moyatec postfix/smtpd[3446]: fatal: open database /etc/aliases.db: No such file or directory Sep 21 20:26:10 moyatec postfix/smtpd[3785]: fatal: open database /etc/aliases.db: No such file or directory Sep 21 20:27:11 moyatec postfix/smtpd[4136]: fatal: open database /etc/aliases.db: No such file or directory Sep 21 20:28:12 moyatec postfix/smtpd[4475]: fatal: open database /etc/aliases.db: No such file or directory Sep 21 20:29:13 moyatec postfix/smtpd[4812]: fatal: open database /etc/aliases.db: No such file or directory Sep 21 20:30:14 moyatec postfix/smtpd[5294]: fatal: open database /etc/aliases.db: No such file or directory Sep 21 20:31:15 moyatec postfix/smtpd[5648]: fatal: open database /etc/aliases.db: No such file or directory Sep 21 20:32:16 moyatec postfix/smtpd[5983]: fatal: open database /etc/aliases.db: No such file or directory Sep 21 20:33:17 moyatec postfix/smtpd[6321]: fatal: open database /etc/aliases.db: No such file or directory Sep 21 20:34:18 moyatec postfix/smtpd[6666]: fatal: open database /etc/aliases.db: No such file or directory Sep 21 20:35:19 moyatec postfix/smtpd[7047]: fatal: open database /etc/aliases.db: No such file or directory Sep 21 20:36:20 moyatec postfix/smtpd[7425]: fatal: open database /etc/aliases.db: No such file or directory Sep 21 20:37:21 moyatec postfix/smtpd[7752]: fatal: open database /etc/al
fatal: open database /etc/aliases.db: No such file or directory As the missing file is some form of no such (Berkley?) DB, a simple touch doesn't create any structure for a suitable "empty database". To fix, update the /etc/aliases database with newaliases: newaliases From the man page: no such file This is a link to the ssmtp binary. It invokes /usr/sbin/sendmail with the -bi option. It is provided for compatibility with the sendmail program. In this case it does absolutely nothing since sSMTP does not support /etc/aliases and is just there to avoid programs returning error messages. Tagged: error, bash, postfix, system adminstration Twitter Facebook Google+ Please enable JavaScript to view the comments powered by Disqus. comments powered by Disqus © 2016 / Published with Ghost / Ghostwriter theme By JollyGoodThemes
[ubuntu] Unable to install postfix atal: open database /etc/aliases.db: Permission denied Stuart1745March 14th, 2010, 10:21 AMRunning newaliases postalias: fatal: open database /etc/aliases.db: Permission denied in my /etc I do not have a aliases.db only an aliases. I cp aliases aliases.db but when I try and install post fix again it gives me the same error and aliases.db goes away. highonv8splashMay 23rd, 2010, 05:13 AMGetting this same exact error and behavior from apt. We've just upgraded from 9.10 to 10.04. Does anyone have any ideas on how to fix this or what exactly is going wrong? It doesn't seem to be a permissions issue, at least directly, since the same problem occurs when the file doesn't exist or when it's 777'd. The only way we've been able to get postfix working properly currently is by restoring a previous aliases.db file and running newaliases with that file there. /etc and /etc/postfix are 755 root:root aliases and the working aliases.db file are 644 and list:daemon. Thanks, Any help appreciated! highonv8splashMay 27th, 2010, 06:05 AMbump, anyone have any ideas on how to fix this? Considering backing up some files and wiping/reinstalling postfix :-( ViRMiNMay 27th, 2010, 08:04 AMYou could try: cd /etc sudo postmap aliases This will create the aliases.db file that you're missing, and should give it the right permissions. Both /etc/aliases and /etc/aliases.db should have 644 perms and root:root ownership. You should be able to fire-up postfix once you've sorted it :) pytheas22June 19th, 2010, 07:39 PMI'm not sure if you all are still having trouble with this, but I was dealing with the same issue on a Lucid server install. I found that the postfix installation would complete successfully if I renamed the file /etc/aliases to something else (deleting it altogether would probably also work), then ran: sudo apt-get -f install I'm pretty sure the issue arose because I previously had exim4, and later sendmail, installed on this machine, and I think one or both of them created /etc/aliases with permissions that postfix wasn't able to work with. Getting rid of that file allowed postfix to recreate it using the permissions it wanted. XimbiotJune 13th, 2011, 03:23 PMI'm having the same problem after a recent postfix upgrade. /etc/aliases.db does not exist and running postalias will not create it. I have tried removing /etc/aliases and rerunning the installer, but configuration still fails with the same message. Any more ideas? Can I fix this short of a complete removal and reinstall? pytheas22June 13th, 2011, 06:45 PMI'm having the same problem after a recent postfix