LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 08-03-2010, 01:43 AM   #61
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297

Hi,

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:
Code:
sudo postmap /etc/postfix/transport
and restart postfix with
Code:
sudo /etc/init.d/postfix restart
Then try to send a mail again.

Kind regards,

Eric
 
Old 08-03-2010, 02:01 AM   #62
Xanios
Member
 
Registered: Jul 2010
Posts: 216

Original Poster
Rep: Reputation: 30
Hi,

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

Last edited by Xanios; 08-03-2010 at 02:11 AM.
 
Old 08-03-2010, 02:11 AM   #63
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hi,

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.

Kind regards,

Eric
 
Old 08-03-2010, 02:12 AM   #64
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Quote:
Originally Posted by Xanios View Post
Hi,

I did run the portmap command earlier, but i got postmap: warning: /etc/postfix/transport, line 1: expected format: key whitespace value:
The content/layout of your transport file is not correct apparently.

Kind regards,

Eric
 
Old 08-03-2010, 02:24 AM   #65
Xanios
Member
 
Registered: Jul 2010
Posts: 216

Original Poster
Rep: Reputation: 30
Hi,

Please give me a min, there's currently some problem with my computer. I'm using another computer now.
 
Old 08-03-2010, 02:31 AM   #66
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Sure, take all the time you need, no pressure here.

Kind regards,

Eric
 
Old 08-03-2010, 02:34 AM   #67
flores81
LQ Newbie
 
Registered: Jul 2010
Posts: 5

Rep: Reputation: 0
i've a lot to learn. there are so much inf i do not know about linux
 
Old 08-03-2010, 02:36 AM   #68
Xanios
Member
 
Registered: Jul 2010
Posts: 216

Original Poster
Rep: Reputation: 30
Hi,

thank you for your patience

i did run both for the sasl_passwd and transport

Code:
postmap sasl_passwd
no issue for this

but when i tried

Code:
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)

Last edited by Xanios; 08-03-2010 at 03:10 AM.
 
Old 08-03-2010, 02:41 AM   #69
Xanios
Member
 
Registered: Jul 2010
Posts: 216

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by EricTRA View Post
The content/layout of your transport file is not correct apparently.

Kind regards,

Eric
How come so? How to make it correct? x_x
 
Old 08-03-2010, 02:45 AM   #70
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Rep: Reputation: Disabled
Do you want to send mails using an external SMTP like gmail?
 
Old 08-03-2010, 02:48 AM   #71
Xanios
Member
 
Registered: Jul 2010
Posts: 216

Original Poster
Rep: Reputation: 30
Ya, i want to send emails to gmail.
I've already created CA Certificate to work with Gmail using the help of this link:
http://prantran.blogspot.com/2007/01...untu-with.html

So, sending to Gmail should be no problem i guess?
 
Old 08-03-2010, 03:40 AM   #72
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Quote:
Originally Posted by Xanios View Post
How come so? How to make it correct? x_x
Hi,

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.

The format for the transport file is:
Code:
domain.com smtp:[10.1.1.50]
or
Code:
domain.com smtp:smtpserver.destinationdomain.com
Kind regards,

Eric
 
Old 08-03-2010, 03:46 AM   #73
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Quote:
Originally Posted by Xanios View Post
Hi,

thank you for your patience

i did run both for the sasl_passwd and transport

Code:
postmap sasl_passwd
no issue for this

but when i tried

Code:
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

Kind regards,

Eric
 
Old 08-03-2010, 04:02 AM   #74
Xanios
Member
 
Registered: Jul 2010
Posts: 216

Original Poster
Rep: Reputation: 30
Hi,

So i comment out this:

Code:
#transport_maps = hash:/etc/postfix/transport
I stored sasl_passwd in sudo vi sasl_passwd

Code:
[smtp.gmail.com]:587             xanios@gmail.com:p@55w0rd
in my main.cf, i had this:

Code:
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
Quote:
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

Last edited by Xanios; 08-03-2010 at 04:16 AM.
 
Old 08-03-2010, 04:20 AM   #75
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Quote:
Originally Posted by Xanios View Post
Hi,

So i comment out this:

Code:
#transport_maps = hash:/etc/postfix/transport
I stored sasl_passwd in sudo vi sasl_passwd

Code:
[smtp.gmail.com]:587             xanios@gmail.com:p@55w0rd
in my main.cf, i had this:

Code:
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd


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:
Code:
sudo chown root:root /etc/postfix/sasl_passwd
Kind regards,

Eric
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Migration Assistant In Ubuntu 9.04 LXer Syndicated Linux News 0 01-08-2009 01:40 PM
not throws evolution setup assistant dissident_goodchild Linux - Software 0 11-16-2007 09:00 PM
Evolution pppoe setup in Ubuntu won't work with dsl Thane Ubuntu 1 08-16-2006 01:11 PM
evolution mail setup hariiyer Linux - Networking 1 03-03-2006 07:41 AM
Evolution - problems after first setup jburford Linux - Software 2 09-08-2002 04:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration