#1  
Old 10th September 2008, 16:26
fixallthisjunkguy fixallthisjunkguy is offline
Junior Member
 
Join Date: Jan 2007
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Default Postfix giving some odd errors

Good Morning, I'm using Ubuntu 8.04 which I upgraded from 7.10 and Postfix is the newest version downloaded with apt-get. Postfix is giving me the following error message in the mail.log


mailserver postfix/tlsmgr[22168]: fatal: tls_prng_exch_open: cannot open PRNG exchange file /var/lib/postfix/prng_exch: Permission denied
mailserver postfix/tlsmgr[22155]: warning: process /usr/lib/postfix/tlsmgr pid 22168 exit status 1
mailserver postfix/tlsmgr[22155]: warning: /usr/lib/postfix/tlsmgr: bad command startup -- throttling


ls -la of /var/lib shows:

drw-r--r-- 2 postfix postfix 4096 2008-09-08 16:$2 postfix


ls -la of /var/lib/postfix shows:

-rw-r--r-- 1 postfix 127 1024 2008-09-08 16:42 prng_exch
-rw-------1 ftp 127 8192 smtpd_scache.db
-rw-------1 ftp 127 8192 smtp_scache.db



Does anyone know what the problem might be? I have tried the comments found in one other thread on roughly the same problem. Any help would be appreciated! Thank you very much.
Reply With Quote
Sponsored Links
  #2  
Old 10th September 2008, 16:42
fixallthisjunkguy fixallthisjunkguy is offline
Junior Member
 
Join Date: Jan 2007
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Also here is my main.cf from postfix, just in case someone needed to see it to give me an idea of what to fix.



# See /usr/share/postfix/main.cf.dist for a commented, more complete version


# Debian specific: Specifying a file name will cause the first
# line of that file to be used as the name. The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname

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

# TLS parameters
smtpd_tls_cert_file = /etc/postix/ssl/smtpd.crt
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
smtpd_use_tls = yes
smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache

# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.
default_process_limit = 15
message_size_limit = 100000000
myhostname = mailserver.maplevalefarms.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
#mydestination =
relayhost = [mail.alltel.net]
smtp_sasl_auth_enable = no
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous
mynetworks = 127.0.0.0/8
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 1000000000
recipient_delimiter = +
inet_interfaces = all
inet_protocols = all
smtpd_sasl_local_domain =
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination
smtpd_tls_auth_only = no
smtp_use_tls = yes
smtp_tls_note_starttls_offer = yes
smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom

virtual_maps = hash:/etc/postfix/virtusertable

mydestination = /etc/postfix/local-host-names
Reply With Quote
  #3  
Old 10th September 2008, 17:25
fixallthisjunkguy fixallthisjunkguy is offline
Junior Member
 
Join Date: Jan 2007
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ok, I fixed that problem, chmod 700 to all files and the folder /var/lib/postfix then set owners and groups both to postfix user for folder and files.


Now another problem, phew this is getting annoying....




Sep 10 11:24:32 mailserver postfix/smtpd[7092]: connect from localhost.localdomain[127.0.0.1]
Sep 10 11:24:32 mailserver postfix/smtpd[7092]: warning: SASL authentication failure: cannot connect to saslauthd server: Permission denied
Sep 10 11:24:32 mailserver postfix/smtpd[7092]: warning: localhost.localdomain[127.0.0.1]: SASL LOGIN authentication failed: generic failure
Sep 10 11:24:32 mailserver postfix/smtpd[7092]: disconnect from localhost.localdomain[127.0.0.1]
Reply With Quote
  #4  
Old 10th September 2008, 17:28
fixallthisjunkguy fixallthisjunkguy is offline
Junior Member
 
Join Date: Jan 2007
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Wow, I'm an idiot, I fixed that too. Reran adduser postfix sasl and it fixed it.....


Now I'm getting


Sep 10 11:27:00 mailserver postfix/postdrop[7438]: warning: mail_queue_enter: create file maildrop/135065.7438: Permission denied
Sep 10 11:27:00 mailserver postfix/postdrop[7446]: warning: mail_queue_enter: create file maildrop/191682.7446: Permission denied
Sep 10 11:27:10 mailserver postfix/postdrop[7438]: warning: mail_queue_enter: create file maildrop/137135.7438: Permission denied
Sep 10 11:27:10 mailserver postfix/postdrop[7446]: warning: mail_queue_enter: create file maildrop/193783.7446: Permission denied
Sep 10 11:27:20 mailserver postfix/postdrop[7438]: warning: mail_queue_enter: create file maildrop/139263.7438: Permission denied
Sep 10 11:27:20 mailserver postfix/postdrop[7446]: warning: mail_queue_enter: create file maildrop/195896.7446: Permission denied
Sep 10 11:27:30 mailserver postfix/postdrop[7438]: warning: mail_queue_enter: create file maildrop/142408.7438: Permission denied
Sep 10 11:27:30 mailserver postfix/postdrop[7446]: warning: mail_queue_enter: create file maildrop/204888.7446: Permission denied
Sep 10 11:27:40 mailserver postfix/postdrop[7438]: warning: mail_queue_enter: create file maildrop/143551.7438: Permission denied
Sep 10 11:27:40 mailserver postfix/postdrop[7446]: warning: mail_queue_enter: create file maildrop/206012.7446: Permission denied
Reply With Quote
  #5  
Old 10th September 2008, 19:36
fixallthisjunkguy fixallthisjunkguy is offline
Junior Member
 
Join Date: Jan 2007
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I am able to send emails to users within the domain, haven't tried anyone outside of it, but they do go, but I'm still getting these error messages above. Anyone have any good ideas about them?
Reply With Quote
  #6  
Old 10th September 2008, 19:55
fixallthisjunkguy fixallthisjunkguy is offline
Junior Member
 
Join Date: Jan 2007
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I chmodded 777 to /var/spool/postfix/maildrop and the ownership was set to postfixostdrop and all appears to be working.

This is most likely a temporary fix, but, it works for now. If anyone knows a better work around, please let me know, and hopfully if anyone has these problems in the future, the answers are posted here.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Undelivered Mail Returned to Sender Error202 General 5 7th May 2009 11:14
localhost postfix/master: fatal: bind 127.0.0.1 port 125: Permission denied g18c Installation/Configuration 4 24th March 2009 17:39
Mail System Error - Returned Mail tristanlee85 General 16 16th March 2008 09:40
Centos 4.4 32bit Hangs, High Server load 3cwired_com Server Operation 11 16th November 2006 15:47
Verify email setup meekish Installation/Configuration 28 27th October 2006 15:36


All times are GMT +2. The time now is 23:41.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.