Can't get postfix to work on 2.6.1

a_lemin
Posts: 231
Member Since:
2007-01-21

Hello, I have tried and tried but I cannot get postfix to work!
I configured it using the trixbox General settings interface but no luck.
I have also tried installing webmin to configure postfix. All the setting are correct, but my mail queue is just growing and growing. Forcing the delivery of the messages via webmin does nothing.

/var/log/maillog
Jun 27 10:27:13 cs1 postfix/master[3160]: warning: process /usr/libexec/postfix/smtp pid 5580 exit status 1
Jun 27 10:27:13 cs1 postfix/master[3160]: warning: /usr/libexec/postfix/smtp: bad command startup -- throttling
Jun 27 10:28:13 cs1 postfix/smtp[5746]: fatal: open database /etc/postfix/saslpasswd.db: No such file or directory
Jun 27 10:28:14 cs1 postfix/master[3160]: warning: process /usr/libexec/postfix/smtp pid 5746 exit status 1
Jun 27 10:28:14 cs1 postfix/master[3160]: warning: /usr/libexec/postfix/smtp: bad command startup -- throttling
^[Jun 27 10:29:14 cs1 postfix/smtp[5750]: fatal: open database /etc/postfix/saslpasswd.db: No such file or directory Jun 27 10:29:15 cs1 postfix/master[3160]: warning: process /usr/libexec/postfix/smtp pid 5750 exit status 1
Jun 27 10:29:15 cs1 postfix/master[3160]: warning: /usr/libexec/postfix/smtp: bad command startup -- throttling

Thanks in advance.



RevDarkman
Posts: 166
Member Since:
2007-06-08
your configs are wrong

I think your main.cf may be incorrectly setup and/or you need to install saslauth



a_lemin
Posts: 231
Member Since:
2007-01-21
Hey, saslauthd was alteady

Hey, saslauthd was alteady there so i ran /etc/init.d/saslauthd start and it said started.
However i still get;

Jun 27 14:30:12 cs1 postfix/master[3160]: warning: /usr/libexec/postfix/smtp: bad command startup -- throttling
Jun 27 14:31:12 cs1 postfix/smtp[7074]: fatal: open database /etc/postfix/saslpasswd.db: No such file or directory
Jun 27 14:31:13 cs1 postfix/master[3160]: warning: process /usr/libexec/postfix/smtp pid 7074 exit status 1
Jun 27 14:31:13 cs1 postfix/master[3160]: warning: /usr/libexec/postfix/smtp: bad command startup -- throttling
Jun 27 14:32:13 cs1 postfix/smtp[7079]: fatal: open database /etc/postfix/saslpasswd.db: No such file or directory
Jun 27 14:32:14 cs1 postfix/master[3160]: warning: process /usr/libexec/postfix/smtp pid 7079 exit status 1



a_lemin
Posts: 231
Member Since:
2007-01-21
I fixed it! I when i went to

I fixed it!

I when i went to the trixbox interface and went to general settings, i set the mail server, but did not set a username and password as i do not need one for our internal company SMTP server.
I looked in main.cf and changed the bottom of the file to;
#smtp_sasl_password_maps = hash:/etc/postfix/saslpasswd
broken_sasl_auth_clients = no
smtpd_sasl_auth_enable = no
smtp_always_send_ehlo = yes
smtp_sasl_auth_enable = no
smtp_sasl_security_options =
relayhost = smtp.ourdomain.york
delay_warning_time = 1
myorigin = ourdomain.com
debug_peer_level = 2

issued '/etc/init.d/postfix restart' and then my whole queue emptied into peoples mail boxes.



ebomb321
Posts: 12
Member Since:
2007-09-15
worked for me

=)



a_lemin
Posts: 231
Member Since:
2007-01-21
This is still an issue with

This is still an issue with the latest build of Trixbox, is there any chance this might get fixed for those who have mail servers that do not need authentication?
Thanks all.



notegenius
Posts: 5
Member Since:
2008-08-15
worked for me too...

worked for me too... thanks man!

NaviWorld Philippines, Inc.



Obliterous
Posts: 9
Member Since:
2008-10-29
A good fix, if smtp auth is

A good fix, if smtp auth is needed for outbound:

from ROOT, execute the following commands. (make sure the saslpasswd has the username/password required for relay)

postmap /etc/postfix/saslpasswd

service postfix restart



barronj
Posts: 7
Member Since:
2008-10-30
Great Fix

Thanks All....

Joe



miahac
Posts: 107
Member Since:
2007-01-04
I do not get it? Why would

I do not get it? Why would you need another mail server? The postfix is a mail server. I just want it to send mails straight out, no relay, no auth required. I put in 127.0.0.1 in thte I just get error after error? What is sasl?

Nov 13 13:26:34 sip21 postfix/smtp[8152]: fatal: open database /etc/postfix/saslpasswd.db: No such file or directory
Nov 13 13:26:35 sip21 postfix/master[7928]: warning: process /usr/libexec/postfix/smtp pid 8152 exit status 1
Nov 13 13:26:35 sip21 postfix/master[7928]: warning: /usr/libexec/postfix/smtp: bad command startup -- throttling
Nov 13 13:27:35 sip21 postfix/smtp[8163]: fatal: open database /etc/postfix/saslpasswd.db: No such file or directory
Nov 13 13:27:36 sip21 postfix/master[7928]: warning: process /usr/libexec/postfix/smtp pid 8163 exit status 1
Nov 13 13:27:36 sip21 postfix/master[7928]: warning: /usr/libexec/postfix/smtp: bad command startup -- throttling

--

We host servers and websites locally in our own Downtown Wichita data center
Wichita Data Centers - Kansas Hosting



miahac
Posts: 107
Member Since:
2007-01-04
So if you want the postfix

So if you want the postfix to send the mail directly and not waste the resources of another server you will need to do the following.

comment out
relayhost= mail.yourdomain.com
add
mynetworks = 127.0.0.1/32 10.10.10.33/32
where 10.10.10.33/24 is your local ip

you will probably want the server to have a fqdn with matching reverse, and add its ip to your spf record.

--

We host servers and websites locally in our own Downtown Wichita data center
Wichita Data Centers - Kansas Hosting



GreenCare
Posts: 6
Member Since:
2007-05-23
Voice Mail to Email

I also have not been able to get this to work.

What is the definition of a FQDN?
I currently have trixbox1.localdomain.
In trixbox general settings I entered mail.???mydomain.com without username & password, but it did not save. Only leaves the word mail.
I went to setup-mail in ssh and ran that.
I have my relay host as mail.mydomain.com. which is at the local cable company.
They host my mail and domain. It is my understanding that I do not need authentication.
I have a static IP.
I did a nslookup and got ??-???-???-??.static.cablecompany.com
should this be my FQDN??
This is new territory for me. It would be nice if there were some definitions for all of this.
I am willing to learn.
Tom



Jay69
Posts: 100
Member Since:
2008-08-22
Tom at at the same point you

Tom at the same point you are at, any takers?



cvander
Posts: 637
Member Since:
2006-06-26
LAZY! There has to be a

LAZY!

There has to be a hundred posts on this site alone about getting your mail to work. As far as FQDN, this link should give you the low-down:

FQDN Definition

-Chris



Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.