Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
You've got an error concerning your transport file. Apparently you didn't run the postmap command to create the database. Have you set up a transport file and forgot to run the portmap command? If so, run this:
I did run the portmap command earlier, but i got postmap: warning: /etc/postfix/transport, line 1: expected format: key whitespace value:
When i tried to run it again, i also got the same thing:
Code:
xanios@ubuntu:~$ sudo postmap /etc/postfix/transport
[sudo] password for xanios:
postmap: warning: /etc/postfix/transport, line 1: expected format: key whitespace value
Code:
xanios@ubuntu:~$ tail -n 100 /var/log/mail.log
Aug 2 23:47:24 ubuntu postfix/qmgr[14348]: 560AC40A63: from=<nagios@server.com>, size=542, nrcpt=1 (queue active)
Aug 2 23:47:24 ubuntu postfix/qmgr[14348]: 4FBF340AF5: from=<nagios@server.com>, size=538, nrcpt=1 (queue active)
Aug 2 23:47:24 ubuntu postfix/qmgr[14348]: 3C6B640AE9: from=<nagios@server.com>, size=557, nrcpt=1 (queue active)
Aug 2 23:47:24 ubuntu postfix/qmgr[14348]: 3F59640A5F: from=<nagios@server.com>, size=544, nrcpt=1 (queue active)
Aug 2 23:47:24 ubuntu postfix/qmgr[14348]: 3DEF240A65: from=<nagios@server.com>, size=552, nrcpt=1 (queue active)
Aug 2 23:47:24 ubuntu postfix/qmgr[14348]: 51D3140AB1: from=<nagios@server.com>, size=554, nrcpt=1 (queue active)
Aug 2 23:47:24 ubuntu postfix/qmgr[14348]: 4E36440AF2: from=<nagios@server.com>, size=538, nrcpt=1 (queue active)
Aug 2 23:47:24 ubuntu postfix/qmgr[14348]: 461C040AF3: from=<nagios@server.com>, size=542, nrcpt=1 (queue active)
Aug 2 23:47:24 ubuntu postfix/smtp[14351]: fatal: open database /etc/postfix/sasl_passwd.db: No such file or directory
Aug 2 23:47:24 ubuntu postfix/qmgr[14348]: 54DCD40A56: from=<nagios@server.com>, size=542, nrcpt=1 (queue active)
Aug 2 23:47:25 ubuntu postfix/master[14344]: warning: process /usr/lib/postfix/smtp pid 14351 exit status 1
Aug 2 23:47:25 ubuntu postfix/master[14344]: warning: /usr/lib/postfix/smtp: bad command startup -- throttling
Aug 2 23:47:35 ubuntu postfix/smtpd[14379]: connect from localhost[127.0.0.1]
Aug 2 23:47:35 ubuntu postfix/smtpd[14379]: disconnect from localhost[127.0.0.1]
Aug 2 23:47:35 ubuntu postfix/pickup[14345]: AF96040AFA: uid=1000 from=<xanios>
Aug 2 23:47:35 ubuntu postfix/cleanup[14424]: AF96040AFA: message-id=<20100803064735.AF96040AFA@ubuntu>
Aug 2 23:47:35 ubuntu postfix/qmgr[14348]: AF96040AFA: from=<layleng@server.com>, size=289, nrcpt=1 (queue active)
Aug 2 23:47:58 ubuntu postfix/smtpd[14379]: connect from localhost[127.0.0.1]
Aug 2 23:47:58 ubuntu postfix/smtpd[14379]: disconnect from localhost[127.0.0.1]
Aug 2 23:48:25 ubuntu postfix/smtp[14845]: fatal: open database /etc/postfix/sasl_passwd.db: No such file or directory
Aug 2 23:48:26 ubuntu postfix/master[14344]: warning: process /usr/lib/postfix/smtp pid 14845 exit status 1
Aug 2 23:48:26 ubuntu postfix/master[14344]: warning: /usr/lib/postfix/smtp: bad command startup -- throttling
Aug 2 23:48:35 ubuntu postfix/smtpd[14379]: connect from localhost[127.0.0.1]
Aug 2 23:48:35 ubuntu postfix/smtpd[14379]: disconnect from localhost[127.0.0.1]
Aug 2 23:48:58 ubuntu postfix/smtpd[14379]: connect from localhost[127.0.0.1]
Aug 2 23:48:58 ubuntu postfix/smtpd[14379]: disconnect from localhost[127.0.0.1]
Aug 2 23:49:26 ubuntu postfix/smtp[15316]: fatal: open database /etc/postfix/sasl_passwd.db: No such file or directory
Aug 2 23:49:27 ubuntu postfix/master[14344]: warning: process /usr/lib/postfix/smtp pid 15316 exit status 1
Aug 2 23:49:27 ubuntu postfix/master[14344]: warning: /usr/lib/postfix/smtp: bad command startup -- throttling
Aug 2 23:49:35 ubuntu postfix/smtpd[14379]: connect from localhost[127.0.0.1]
Aug 2 23:49:35 ubuntu postfix/smtpd[14379]: disconnect from localhost[127.0.0.1]
Aug 2 23:49:58 ubuntu postfix/smtpd[14379]: connect from localhost[127.0.0.1]
Aug 2 23:49:58 ubuntu postfix/smtpd[14379]: disconnect from localhost[127.0.0.1]
Aug 2 23:50:27 ubuntu postfix/smtp[15813]: fatal: open database /etc/postfix/sasl_passwd.db: No such file or directory
Aug 2 23:50:28 ubuntu postfix/master[14344]: warning: process /usr/lib/postfix/smtp pid 15813 exit status 1
Aug 2 23:50:28 ubuntu postfix/master[14344]: warning: /usr/lib/postfix/smtp: bad command startup -- throttling
Aug 2 23:50:35 ubuntu postfix/smtpd[14379]: connect from localhost[127.0.0.1]
Aug 2 23:50:35 ubuntu postfix/smtpd[14379]: disconnect from localhost[127.0.0.1]
Aug 2 23:50:57 ubuntu postfix/postmap[16122]: warning: /etc/postfix/transport, line 1: expected format: key whitespace value
Aug 2 23:50:58 ubuntu postfix/smtpd[14379]: connect from localhost[127.0.0.1]
Aug 2 23:50:58 ubuntu postfix/smtpd[14379]: disconnect from localhost[127.0.0.1]
Aug 2 23:51:05 ubuntu postfix/pickup[14345]: 3435340AFB: uid=1001 from=<nagios>
Aug 2 23:51:05 ubuntu postfix/cleanup[16193]: 3435340AFB: message-id=<20100803065105.3435340AFB@ubuntu>
Aug 2 23:51:05 ubuntu postfix/qmgr[14348]: 3435340AFB: from=<nagios@server.com>, size=544, nrcpt=1 (queue active)
Aug 2 23:51:21 ubuntu postfix/master[14344]: terminating on signal 15
Aug 2 23:51:22 ubuntu postfix/master[16413]: daemon started -- version 2.6.5, configuration /etc/postfix
Aug 2 23:51:22 ubuntu postfix/qmgr[16417]: 3CFB540A6B: from=<nagios@server.com>, size=552, nrcpt=1 (queue active)
Aug 2 23:51:22 ubuntu postfix/qmgr[16417]: 5367D40ADF: from=<nagios@server.com>, size=568, nrcpt=1 (queue active)
Aug 2 23:51:22 ubuntu postfix/qmgr[16417]: 2B2A140AAB: from=<nagios@server.com>, size=563, nrcpt=1 (queue active)
Aug 2 23:51:22 ubuntu postfix/qmgr[16417]: 52DA940A62: from=<nagios@server.com>, size=552, nrcpt=1 (queue active)
Aug 2 23:51:22 ubuntu postfix/qmgr[16417]: 4506B40A84: from=<nagios@server.com>, size=556, nrcpt=1 (queue active)
Aug 2 23:51:22 ubuntu postfix/qmgr[16417]: 524C140AB7: from=<nagios@server.com>, size=540, nrcpt=1 (queue active)
Aug 2 23:51:22 ubuntu postfix/qmgr[16417]: 4867240AB8: from=<nagios@server.com>, size=582, nrcpt=1 (queue active)
Aug 2 23:51:22 ubuntu postfix/qmgr[16417]: 4953340A5B: from=<nagios@server.com>, size=520, nrcpt=1 (queue active)
Aug 2 23:51:22 ubuntu postfix/qmgr[16417]: 5157E40ABA: from=<nagios@server.com>, size=580, nrcpt=1 (queue active)
Aug 2 23:51:22 ubuntu postfix/qmgr[16417]: 4D7E240AF4: from=<nagios@server.com>, size=571, nrcpt=1 (queue active)
Aug 2 23:51:22 ubuntu postfix/qmgr[16417]: 1C9AD40A57: from=<nagios@server.com>, size=565, nrcpt=1 (queue active)
Aug 2 23:51:22 ubuntu postfix/qmgr[16417]: 4F2A340A81: from=<nagios@server.com>, size=550, nrcpt=1 (queue active)
Aug 2 23:51:22 ubuntu postfix/qmgr[16417]: 448D540AE7: from=<nagios@server.com>, size=559, nrcpt=1 (queue active)
Aug 2 23:51:22 ubuntu postfix/qmgr[16417]: 50DF840A59: from=<nagios@server.com>, size=550, nrcpt=1 (queue active)
Aug 2 23:51:22 ubuntu postfix/qmgr[16417]: 3E68F40AEC: from=<nagios@server.com>, size=552, nrcpt=1 (queue active)
Aug 2 23:51:22 ubuntu postfix/qmgr[16417]: 3997340ADD: from=<nagios@server.com>, size=550, nrcpt=1 (queue active)
Aug 2 23:51:22 ubuntu postfix/qmgr[16417]: 5675540A60: from=<nagios@server.com>, size=544, nrcpt=1 (queue active)
Aug 2 23:51:22 ubuntu postfix/qmgr[16417]: 5044840AB6: from=<nagios@server.com>, size=563, nrcpt=1 (queue active)
Aug 2 23:51:22 ubuntu postfix/qmgr[16417]: 53F4340AAD: from=<nagios@server.com>, size=544, nrcpt=1 (queue active)
Aug 2 23:51:22 ubuntu postfix/qmgr[16417]: 4740540A61: from=<nagios@server.com>, size=583, nrcpt=1 (queue active)
Aug 2 23:51:22 ubuntu postfix/qmgr[16417]: 3A41640AAC: from=<nagios@server.com>, size=573, nrcpt=1 (queue active)
Aug 2 23:51:22 ubuntu postfix/qmgr[16417]: 56FCB40A5D: from=<nagios@server.com>, size=552, nrcpt=1 (queue active)
Aug 2 23:51:22 ubuntu postfix/qmgr[16417]: 47B5D40ADE: from=<nagios@server.com>, size=560, nrcpt=1 (queue active)
Aug 2 23:51:22 ubuntu postfix/qmgr[16417]: 3EF1140AE8: from=<nagios@server.com>, size=565, nrcpt=1 (queue active)
Aug 2 23:51:22 ubuntu postfix/qmgr[16417]: 4A34F40A83: from=<nagios@server.com>, size=520, nrcpt=1 (queue active)
Aug 2 23:51:22 ubuntu postfix/qmgr[16417]: 3AE0A40A5E: from=<nagios@server.com>, size=540, nrcpt=1 (queue active)
Aug 2 23:51:22 ubuntu postfix/qmgr[16417]: 458D140A6A: from=<nagios@server.com>, size=550, nrcpt=1 (queue active)
Aug 2 23:51:22 ubuntu postfix/qmgr[16417]: 4AC3640A71: from=<nagios@server.com>, size=571, nrcpt=1 (queue active)
Aug 2 23:51:22 ubuntu postfix/qmgr[16417]: 38BFC40AE1: from=<nagios@server.com>, size=540, nrcpt=1 (queue active)
Aug 2 23:51:22 ubuntu postfix/qmgr[16417]: 3D73340AB4: from=<nagios@server.com>, size=585, nrcpt=1 (queue active)
Aug 2 23:51:22 ubuntu postfix/qmgr[16417]: 5568340A5C: from=<nagios@server.com>, size=514, nrcpt=1 (queue active)
Aug 2 23:51:22 ubuntu postfix/qmgr[16417]: 3B8C940AEF: from=<nagios@server.com>, size=590, nrcpt=1 (queue active)
Aug 2 23:51:22 ubuntu postfix/qmgr[16417]: 3043740A86: from=<nagios@server.com>, size=552, nrcpt=1 (queue active)
Aug 2 23:51:22 ubuntu postfix/qmgr[16417]: 4EB7C40ADA: from=<nagios@server.com>, size=514, nrcpt=1 (queue active)
Aug 2 23:51:22 ubuntu postfix/qmgr[16417]: 2135540A6C: from=<nagios@server.com>, size=554, nrcpt=1 (queue active)
Aug 2 23:51:22 ubuntu postfix/qmgr[16417]: 3FC9140A5A: from=<nagios@server.com>, size=573, nrcpt=1 (queue active)
Aug 2 23:51:22 ubuntu postfix/qmgr[16417]: 46CB340A67: from=<nagios@server.com>, size=540, nrcpt=1 (queue active)
Aug 2 23:51:22 ubuntu postfix/qmgr[16417]: BAACD40A58: from=<layleng@server.com>, size=286, nrcpt=1 (queue active)
Aug 2 23:51:22 ubuntu postfix/qmgr[16417]: AF96040AFA: from=<layleng@server.com>, size=289, nrcpt=1 (queue active)
Aug 2 23:51:22 ubuntu postfix/qmgr[16417]: 560AC40A63: from=<nagios@server.com>, size=542, nrcpt=1 (queue active)
Aug 2 23:51:22 ubuntu postfix/qmgr[16417]: 4FBF340AF5: from=<nagios@server.com>, size=538, nrcpt=1 (queue active)
Aug 2 23:51:22 ubuntu postfix/qmgr[16417]: 3435340AFB: from=<nagios@server.com>, size=544, nrcpt=1 (queue active)
Aug 2 23:51:22 ubuntu postfix/qmgr[16417]: 3C6B640AE9: from=<nagios@server.com>, size=557, nrcpt=1 (queue active)
Aug 2 23:51:22 ubuntu postfix/qmgr[16417]: 3F59640A5F: from=<nagios@server.com>, size=544, nrcpt=1 (queue active)
Aug 2 23:51:22 ubuntu postfix/qmgr[16417]: 3DEF240A65: from=<nagios@server.com>, size=552, nrcpt=1 (queue active)
Aug 2 23:51:22 ubuntu postfix/qmgr[16417]: 51D3140AB1: from=<nagios@server.com>, size=554, nrcpt=1 (queue active)
Aug 2 23:51:22 ubuntu postfix/qmgr[16417]: 4E36440AF2: from=<nagios@server.com>, size=538, nrcpt=1 (queue active)
Aug 2 23:51:22 ubuntu postfix/qmgr[16417]: 461C040AF3: from=<nagios@server.com>, size=542, nrcpt=1 (queue active)
Aug 2 23:51:22 ubuntu postfix/qmgr[16417]: 54DCD40A56: from=<nagios@server.com>, size=542, nrcpt=1 (queue active)
Aug 2 23:51:22 ubuntu postfix/smtp[16420]: fatal: open database /etc/postfix/sasl_passwd.db: No such file or directory
Aug 2 23:51:23 ubuntu postfix/master[16413]: warning: process /usr/lib/postfix/smtp pid 16420 exit status 1
Aug 2 23:51:23 ubuntu postfix/master[16413]: warning: /usr/lib/postfix/smtp: bad command startup -- throttling
Aug 2 23:51:35 ubuntu postfix/smtpd[16462]: connect from localhost[127.0.0.1]
Aug 2 23:51:35 ubuntu postfix/smtpd[16462]: disconnect from localhost[127.0.0.1]
UPDATED:
Code:
xanios@ubuntu:~$ mail -s "test mail" -v xanios@gmail.com
testing
Cc:
Mail Delivery Status Report will be mailed to <xanios>.
xanios@ubuntu:~$ tail -n 100 /var/log/mail.log
Aug 2 23:59:58 ubuntu postfix/smtpd[16462]: disconnect from localhost[127.0.0.1]
Aug 3 00:00:05 ubuntu postfix/pickup[16414]: 2229340B21: uid=1001 from=<nagios>
Aug 3 00:00:05 ubuntu postfix/cleanup[18427]: 2229340B21: message-id=<20100803070005.2229340B21@ubuntu>
Aug 3 00:00:05 ubuntu postfix/qmgr[16417]: 2229340B21: from=<nagios@server.com>, size=559, nrcpt=1 (queue active)
Aug 3 00:00:31 ubuntu postfix/smtp[20882]: fatal: open database /etc/postfix/sasl_passwd.db: No such file or directory
Aug 3 00:00:32 ubuntu postfix/master[16413]: warning: process /usr/lib/postfix/smtp pid 20882 exit status 1
Aug 3 00:00:32 ubuntu postfix/master[16413]: warning: /usr/lib/postfix/smtp: bad command startup -- throttling
Aug 3 00:00:35 ubuntu postfix/smtpd[16462]: connect from localhost[127.0.0.1]
Aug 3 00:00:35 ubuntu postfix/smtpd[16462]: disconnect from localhost[127.0.0.1]
Aug 3 00:00:58 ubuntu postfix/smtpd[16462]: connect from localhost[127.0.0.1]
Aug 3 00:00:58 ubuntu postfix/smtpd[16462]: disconnect from localhost[127.0.0.1]
Aug 3 00:01:32 ubuntu postfix/smtp[21363]: fatal: open database /etc/postfix/sasl_passwd.db: No such file or directory
Aug 3 00:01:33 ubuntu postfix/master[16413]: warning: process /usr/lib/postfix/smtp pid 21363 exit status 1
Aug 3 00:01:33 ubuntu postfix/master[16413]: warning: /usr/lib/postfix/smtp: bad command startup -- throttling
Aug 3 00:01:35 ubuntu postfix/smtpd[16462]: connect from localhost[127.0.0.1]
Aug 3 00:01:35 ubuntu postfix/smtpd[16462]: disconnect from localhost[127.0.0.1]
Aug 3 00:01:58 ubuntu postfix/smtpd[16462]: connect from localhost[127.0.0.1]
Aug 3 00:01:58 ubuntu postfix/smtpd[16462]: disconnect from localhost[127.0.0.1]
Aug 3 00:02:33 ubuntu postfix/smtp[21838]: fatal: open database /etc/postfix/sasl_passwd.db: No such file or directory
Aug 3 00:02:34 ubuntu postfix/master[16413]: warning: process /usr/lib/postfix/smtp pid 21838 exit status 1
Aug 3 00:02:34 ubuntu postfix/master[16413]: warning: /usr/lib/postfix/smtp: bad command startup -- throttling
Aug 3 00:02:35 ubuntu postfix/smtpd[16462]: connect from localhost[127.0.0.1]
Aug 3 00:02:35 ubuntu postfix/smtpd[16462]: disconnect from localhost[127.0.0.1]
Aug 3 00:02:55 ubuntu postfix/pickup[16414]: 0FA6240B22: uid=1001 from=<nagios>
Aug 3 00:02:55 ubuntu postfix/cleanup[22085]: 0FA6240B22: message-id=<20100803070255.0FA6240B22@ubuntu>
Aug 3 00:02:55 ubuntu postfix/qmgr[16417]: 0FA6240B22: from=<nagios@server.com>, size=580, nrcpt=1 (queue active)
Aug 3 00:02:58 ubuntu postfix/smtpd[16462]: connect from localhost[127.0.0.1]
Aug 3 00:02:58 ubuntu postfix/smtpd[16462]: disconnect from localhost[127.0.0.1]
Aug 3 00:03:05 ubuntu postfix/pickup[16414]: 2B9B840B24: uid=1001 from=<nagios>
Aug 3 00:03:05 ubuntu postfix/cleanup[22085]: 2B9B840B24: message-id=<20100803070305.2B9B840B24@ubuntu>
Aug 3 00:03:05 ubuntu postfix/qmgr[16417]: 2B9B840B24: from=<nagios@server.com>, size=556, nrcpt=1 (queue active)
Aug 3 00:03:05 ubuntu postfix/pickup[16414]: 3B58840B25: uid=1001 from=<nagios>
Aug 3 00:03:05 ubuntu postfix/cleanup[22085]: 3B58840B25: message-id=<20100803070305.3B58840B25@ubuntu>
Aug 3 00:03:05 ubuntu postfix/qmgr[16417]: 3B58840B25: from=<nagios@server.com>, size=552, nrcpt=1 (queue active)
Aug 3 00:03:05 ubuntu postfix/pickup[16414]: 4F30540B26: uid=1001 from=<nagios>
Aug 3 00:03:05 ubuntu postfix/cleanup[22085]: 4F30540B26: message-id=<20100803070305.4F30540B26@ubuntu>
Aug 3 00:03:05 ubuntu postfix/qmgr[16417]: 4F30540B26: from=<nagios@server.com>, size=554, nrcpt=1 (queue active)
Aug 3 00:03:15 ubuntu postfix/pickup[16414]: 39AB140B28: uid=1001 from=<nagios>
Aug 3 00:03:15 ubuntu postfix/cleanup[22085]: 39AB140B28: message-id=<20100803070315.39AB140B28@ubuntu>
Aug 3 00:03:15 ubuntu postfix/qmgr[16417]: 39AB140B28: from=<nagios@server.com>, size=568, nrcpt=1 (queue active)
Aug 3 00:03:15 ubuntu postfix/pickup[16414]: 46CBE40AB3: uid=1001 from=<nagios>
Aug 3 00:03:15 ubuntu postfix/cleanup[22085]: 46CBE40AB3: message-id=<20100803070315.46CBE40AB3@ubuntu>
Aug 3 00:03:15 ubuntu postfix/qmgr[16417]: 46CBE40AB3: from=<nagios@server.com>, size=550, nrcpt=1 (queue active)
Aug 3 00:03:34 ubuntu postfix/smtp[22337]: fatal: open database /etc/postfix/sasl_passwd.db: No such file or directory
Aug 3 00:03:35 ubuntu postfix/smtpd[16462]: connect from localhost[127.0.0.1]
Aug 3 00:03:35 ubuntu postfix/smtpd[16462]: disconnect from localhost[127.0.0.1]
Aug 3 00:03:35 ubuntu postfix/master[16413]: warning: process /usr/lib/postfix/smtp pid 22337 exit status 1
Aug 3 00:03:35 ubuntu postfix/master[16413]: warning: /usr/lib/postfix/smtp: bad command startup -- throttling
Aug 3 00:03:58 ubuntu postfix/smtpd[16462]: connect from localhost[127.0.0.1]
Aug 3 00:03:58 ubuntu postfix/smtpd[16462]: disconnect from localhost[127.0.0.1]
Aug 3 00:04:35 ubuntu postfix/smtp[22788]: fatal: open database /etc/postfix/sasl_passwd.db: No such file or directory
Aug 3 00:04:35 ubuntu postfix/smtpd[16462]: connect from localhost[127.0.0.1]
Aug 3 00:04:35 ubuntu postfix/smtpd[16462]: disconnect from localhost[127.0.0.1]
Aug 3 00:04:36 ubuntu postfix/master[16413]: warning: process /usr/lib/postfix/smtp pid 22788 exit status 1
Aug 3 00:04:36 ubuntu postfix/master[16413]: warning: /usr/lib/postfix/smtp: bad command startup -- throttling
Aug 3 00:04:58 ubuntu postfix/smtpd[16462]: connect from localhost[127.0.0.1]
Aug 3 00:04:58 ubuntu postfix/smtpd[16462]: disconnect from localhost[127.0.0.1]
Aug 3 00:05:35 ubuntu postfix/smtpd[16462]: connect from localhost[127.0.0.1]
Aug 3 00:05:35 ubuntu postfix/smtpd[16462]: disconnect from localhost[127.0.0.1]
Aug 3 00:05:36 ubuntu postfix/smtp[23364]: fatal: open database /etc/postfix/sasl_passwd.db: No such file or directory
Aug 3 00:05:37 ubuntu postfix/master[16413]: warning: process /usr/lib/postfix/smtp pid 23364 exit status 1
Aug 3 00:05:37 ubuntu postfix/master[16413]: warning: /usr/lib/postfix/smtp: bad command startup -- throttling
Aug 3 00:05:58 ubuntu postfix/smtpd[16462]: connect from localhost[127.0.0.1]
Aug 3 00:05:58 ubuntu postfix/smtpd[16462]: disconnect from localhost[127.0.0.1]
Aug 3 00:06:35 ubuntu postfix/smtpd[16462]: connect from localhost[127.0.0.1]
Aug 3 00:06:35 ubuntu postfix/smtpd[16462]: disconnect from localhost[127.0.0.1]
Aug 3 00:06:37 ubuntu postfix/smtp[23848]: fatal: open database /etc/postfix/sasl_passwd.db: No such file or directory
Aug 3 00:06:38 ubuntu postfix/master[16413]: warning: process /usr/lib/postfix/smtp pid 23848 exit status 1
Aug 3 00:06:38 ubuntu postfix/master[16413]: warning: /usr/lib/postfix/smtp: bad command startup -- throttling
Aug 3 00:06:58 ubuntu postfix/smtpd[16462]: connect from localhost[127.0.0.1]
Aug 3 00:06:58 ubuntu postfix/smtpd[16462]: disconnect from localhost[127.0.0.1]
Aug 3 00:07:35 ubuntu postfix/smtpd[16462]: connect from localhost[127.0.0.1]
Aug 3 00:07:35 ubuntu postfix/smtpd[16462]: disconnect from localhost[127.0.0.1]
Aug 3 00:07:38 ubuntu postfix/smtp[24329]: fatal: open database /etc/postfix/sasl_passwd.db: No such file or directory
Aug 3 00:07:39 ubuntu postfix/master[16413]: warning: process /usr/lib/postfix/smtp pid 24329 exit status 1
Aug 3 00:07:39 ubuntu postfix/master[16413]: warning: /usr/lib/postfix/smtp: bad command startup -- throttling
Aug 3 00:07:58 ubuntu postfix/smtpd[16462]: connect from localhost[127.0.0.1]
Aug 3 00:07:58 ubuntu postfix/smtpd[16462]: disconnect from localhost[127.0.0.1]
Aug 3 00:08:35 ubuntu postfix/smtpd[16462]: connect from localhost[127.0.0.1]
Aug 3 00:08:35 ubuntu postfix/smtpd[16462]: disconnect from localhost[127.0.0.1]
Aug 3 00:08:39 ubuntu postfix/smtp[24788]: fatal: open database /etc/postfix/sasl_passwd.db: No such file or directory
Aug 3 00:08:40 ubuntu postfix/master[16413]: warning: process /usr/lib/postfix/smtp pid 24788 exit status 1
Aug 3 00:08:40 ubuntu postfix/master[16413]: warning: /usr/lib/postfix/smtp: bad command startup -- throttling
Aug 3 00:08:58 ubuntu postfix/smtpd[16462]: connect from localhost[127.0.0.1]
Aug 3 00:08:58 ubuntu postfix/smtpd[16462]: disconnect from localhost[127.0.0.1]
Aug 3 00:09:35 ubuntu postfix/smtpd[16462]: connect from localhost[127.0.0.1]
Aug 3 00:09:35 ubuntu postfix/smtpd[16462]: disconnect from localhost[127.0.0.1]
Aug 3 00:09:40 ubuntu postfix/smtp[25248]: fatal: open database /etc/postfix/sasl_passwd.db: No such file or directory
Aug 3 00:09:41 ubuntu postfix/master[16413]: warning: process /usr/lib/postfix/smtp pid 25248 exit status 1
Aug 3 00:09:41 ubuntu postfix/master[16413]: warning: /usr/lib/postfix/smtp: bad command startup -- throttling
Aug 3 00:09:58 ubuntu postfix/smtpd[16462]: connect from localhost[127.0.0.1]
Aug 3 00:09:58 ubuntu postfix/smtpd[16462]: disconnect from localhost[127.0.0.1]
Aug 3 00:10:14 ubuntu postfix/pickup[16414]: B5A2540B2D: uid=1000 from=<layleng>
Aug 3 00:10:14 ubuntu postfix/cleanup[25623]: B5A2540B2D: message-id=<20100803071014.B5A2540B2D@ubuntu>
Aug 3 00:10:14 ubuntu postfix/qmgr[16417]: B5A2540B2D: from=<layleng@server.com>, size=289, nrcpt=1 (queue active)
Aug 3 00:10:35 ubuntu postfix/smtpd[16462]: connect from localhost[127.0.0.1]
Aug 3 00:10:35 ubuntu postfix/smtpd[16462]: disconnect from localhost[127.0.0.1]
Aug 3 00:10:41 ubuntu postfix/smtp[25767]: fatal: open database /etc/postfix/sasl_passwd.db: No such file or directory
Aug 3 00:10:42 ubuntu postfix/master[16413]: warning: process /usr/lib/postfix/smtp pid 25767 exit status 1
Aug 3 00:10:42 ubuntu postfix/master[16413]: warning: /usr/lib/postfix/smtp: bad command startup -- throttling
Did you run the postmap command for the password file also? In order to make the password file readable by postfix you need to do that too.
Code:
sudo postmap /etc/postfix/sasl_passwd
All files that you create like password files, transport file and so on, that are referred to in your main.cf need to go through the postmap command in order to create a database file readable by postfix.
After running the command above, restart postfix with:
Code:
sudo /etc/init.d/postfix restart
and try again to send a mail. Post output of the log file (last 20 lines or so) right after sending the mail.
xanios@ubuntu:~$ sudo postmap /etc/postfix/sasl_passwd
[sudo] password for xanios:
postmap: fatal: open /etc/postfix/sasl_passwd: No such file or directory
Are both commands the same?
the mail log:
Code:
xanios@ubuntu:~$ mail -s "test mail" -v xanios@gmail.com
test
Cc:
Mail Delivery Status Report will be mailed to <xanios>.
xanios@ubuntu:~$ tail -n 20 /var/log/mail.log
Aug 3 00:41:09 ubuntu postfix/qmgr[2681]: 560AC40A63: from=<nagios@server.com>, size=542, nrcpt=1 (queue active)
Aug 3 00:41:09 ubuntu postfix/qmgr[2681]: 4FBF340AF5: from=<nagios@server.com>, size=538, nrcpt=1 (queue active)
Aug 3 00:41:09 ubuntu postfix/qmgr[2681]: 3435340AFB: from=<nagios@server.com>, size=544, nrcpt=1 (queue active)
Aug 3 00:41:09 ubuntu postfix/qmgr[2681]: 3C6B640AE9: from=<nagios@server.com>, size=557, nrcpt=1 (queue active)
Aug 3 00:41:09 ubuntu postfix/qmgr[2681]: 30A9240B14: from=<nagios@server.com>, size=540, nrcpt=1 (queue active)
Aug 3 00:41:09 ubuntu postfix/qmgr[2681]: 3F59640A5F: from=<nagios@server.com>, size=544, nrcpt=1 (queue active)
Aug 3 00:41:09 ubuntu postfix/qmgr[2681]: 3DEF240A65: from=<nagios@server.com>, size=552, nrcpt=1 (queue active)
Aug 3 00:41:09 ubuntu postfix/qmgr[2681]: 2229340B21: from=<nagios@server.com>, size=559, nrcpt=1 (queue active)
Aug 3 00:41:09 ubuntu postfix/qmgr[2681]: 51D3140AB1: from=<nagios@server.com>, size=554, nrcpt=1 (queue active)
Aug 3 00:41:09 ubuntu postfix/qmgr[2681]: 4E36440AF2: from=<nagios@server.com>, size=538, nrcpt=1 (queue active)
Aug 3 00:41:09 ubuntu postfix/qmgr[2681]: 461C040AF3: from=<nagios@server.com>, size=542, nrcpt=1 (queue active)
Aug 3 00:41:09 ubuntu postfix/qmgr[2681]: 54DCD40A56: from=<nagios@server.com>, size=542, nrcpt=1 (queue active)
Aug 3 00:41:09 ubuntu postfix/qmgr[2681]: 5CD8840B19: from=<nagios@server.com>, size=514, nrcpt=1 (queue active)
Aug 3 00:41:09 ubuntu postfix/qmgr[2681]: 2B9B840B24: from=<nagios@server.com>, size=556, nrcpt=1 (queue active)
Aug 3 00:41:09 ubuntu postfix/qmgr[2681]: 4613940B07: from=<nagios@server.com>, size=544, nrcpt=1 (queue active)
Aug 3 00:41:09 ubuntu postfix/master[2677]: warning: process /usr/lib/postfix/smtp pid 2684 exit status 1
Aug 3 00:41:09 ubuntu postfix/master[2677]: warning: /usr/lib/postfix/smtp: bad command startup -- throttling
Aug 3 00:41:27 ubuntu postfix/pickup[2678]: 894B940B35: uid=1000 from=<xanios>
Aug 3 00:41:27 ubuntu postfix/cleanup[2689]: 894B940B35: message-id=<20100803074127.894B940B35@ubuntu>
Aug 3 00:41:27 ubuntu postfix/qmgr[2681]: 894B940B35: from=<xanios@server.com>, size=286, nrcpt=1 (queue active)
Let me ask you first: Do you need the transport file? I assume you don't since apparently you only use this server with Nagios. the transport file is used to route emails for specific domains to other servers. If you don't need it just comment out the line in the main.cf file and restart postfix.
xanios@ubuntu:~$ sudo postmap /etc/postfix/sasl_passwd
[sudo] password for xanios:
postmap: fatal: open /etc/postfix/sasl_passwd: No such file or directory
Are both commands the same?
Hi,
Where is the sasl_passwd located? It has to be in the location you indicated in the main.cf file. If it's not then move it there and run the postmap command. If your main.cf file points to /etc/postfix/sasl_passwd for the password file and the file sasl_passwd is in your home directory then it will not work.
Check where the file is and adjust where necessary, then run the postmap command accordingly with the correct path/filename, restart postfix and try again.
And don't worry about my patience, I have tons of it
If your main.cf file points to /etc/postfix/sasl_passwd for the password file and the file sasl_passwd is in your home directory then it will not work.
How to check whether sasl_passwd is in my home directory?
Add on: OK, so since in main.cf it is written as "/etc/postfix/sasl_passwd",
i "sudo vi /etc/postfix/sasl_passwd" first,
after that, i add inside /etc/postfix/sasl_passwd with this:
Code:
[smtp.gmail.com]:587 xanios@gmail.com:p@55w0rd
Is that what you mean? Hope i didn't misunderstand what you're saying
How to check whether sasl_passwd is in my home directory?
Hi,
Run the following commands:
Code:
cd
to take you to your home directory.
Code:
ls -al | grep sasl
to list all files and permissions in your home directory (ls -al), but only show those that contain sasl in the name (grep sasl). Please post the output.
If the file sasl_passwd is in your home directory move it to the correct directory:
Code:
sudo mv sasl_passwd /etc/postfix/
If your user (xanios) is owner of the sasl_passwd file then change that:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.