LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Postfix Problem (https://www.linuxquestions.org/questions/linux-newbie-8/postfix-problem-356493/)

wfernley 08-24-2005 09:40 AM

Postfix Problem
 
Hello, I am trying to get postfix working but it is giving me errors. I'm not to familiar with Postfix but I tried viewing the maillog and this is what I got:


Aug 24 09:19:47 webserver postfix/master[7171]: warning: process /usr/libexec/postfix/nqmgr pid 3943 exit status 1
Aug 24 09:19:47 webserver postfix/master[7171]: warning: /usr/libexec/postfix/nqmgr: bad command startup -- throttling
Aug 24 09:20:30 webserver postfix/smtpd[3997]: fatal: match_list_parse: open file /etc/postfix/localdomains: No such file or directory
Aug 24 09:20:31 webserver postfix/master[7171]: warning: process /usr/libexec/postfix/smtpd pid 3997 exit status 1
Aug 24 09:20:31 webserver postfix/master[7171]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
Aug 24 09:20:44 webserver postfix/pickup[4017]: fatal: match_list_parse: open file /etc/postfix/localdomains: No such file or directory
Aug 24 09:20:45 webserver postfix/master[7171]: warning: process /usr/libexec/postfix/pickup pid 4017 exit status 1
Aug 24 09:20:45 webserver postfix/master[7171]: warning: /usr/libexec/postfix/pickup: bad command startup -- throttling
Aug 24 09:20:47 webserver postfix/nqmgr[4023]: fatal: match_list_parse: open file /etc/postfix/localdomains: No such file or directory
Aug 24 09:20:48 webserver postfix/master[7171]: warning: process /usr/libexec/postfix/nqmgr pid 4023 exit status 1
Aug 24 09:20:48 webserver postfix/master[7171]: warning: /usr/libexec/postfix/nqmgr: bad command startup -- throttling
Aug 24 09:21:31 webserver postfix/smtpd[4076]: fatal: match_list_parse: open file /etc/postfix/localdomains: No such file or directory
Aug 24 09:21:32 webserver postfix/master[7171]: warning: process /usr/libexec/postfix/smtpd pid 4076 exit status 1
Aug 24 09:21:32 webserver postfix/master[7171]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
Aug 24 09:21:45 webserver postfix/pickup[4093]: fatal: match_list_parse: open file /etc/postfix/localdomains: No such file or directory
Aug 24 09:21:46 webserver postfix/master[7171]: warning: process /usr/libexec/postfix/pickup pid 4093 exit status 1
Aug 24 09:21:46 webserver postfix/master[7171]: warning: /usr/libexec/postfix/pickup: bad command startup -- throttling
Aug 24 09:21:48 webserver postfix/nqmgr[4097]: fatal: match_list_parse: open file /etc/postfix/localdomains: No such file or directory
Aug 24 09:21:49 webserver postfix/master[7171]: warning: process /usr/libexec/postfix/nqmgr pid 4097 exit status 1
Aug 24 09:21:49 webserver postfix/master[7171]: warning: /usr/libexec/postfix/nqmgr: bad command startup -- throttling
Aug 24 09:22:32 webserver postfix/smtpd[4148]: fatal: match_list_parse: open file /etc/postfix/localdomains: No such file or directory
Aug 24 09:22:33 webserver postfix/master[7171]: warning: process /usr/libexec/postfix/smtpd pid 4148 exit status 1
Aug 24 09:22:33 webserver postfix/master[7171]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
Aug 24 09:22:46 webserver postfix/pickup[4165]: fatal: match_list_parse: open file /etc/postfix/localdomains: No such file or directory
Aug 24 09:22:47 webserver postfix/master[7171]: warning: process /usr/libexec/postfix/pickup pid 4165 exit status 1
Aug 24 09:22:47 webserver postfix/master[7171]: warning: /usr/libexec/postfix/pickup: bad command startup -- throttling
Aug 24 09:22:50 webserver postfix/nqmgr[4169]: fatal: match_list_parse: open file /etc/postfix/localdomains: No such file or directory
Aug 24 09:22:51 webserver postfix/master[7171]: warning: process /usr/libexec/postfix/nqmgr pid 4169 exit status 1
Aug 24 09:22:51 webserver postfix/master[7171]: warning: /usr/libexec/postfix/nqmgr: bad command startup -- throttling
Aug 24 09:23:33 webserver postfix/smtpd[4223]: fatal: match_list_parse: open file /etc/postfix/localdomains: No such file or directory
Aug 24 09:23:34 webserver postfix/master[7171]: warning: process /usr/libexec/postfix/smtpd pid 4223 exit status 1
Aug 24 09:23:34 webserver postfix/master[7171]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
Aug 24 09:23:47 webserver postfix/pickup[4243]: fatal: match_list_parse: open file /etc/postfix/localdomains: No such file or directory
Aug 24 09:23:48 webserver postfix/master[7171]: warning: process /usr/libexec/postfix/pickup pid 4243 exit status 1
Aug 24 09:23:48 webserver postfix/master[7171]: warning: /usr/libexec/postfix/pickup: bad command startup -- throttling
Aug 24 09:23:51 webserver postfix/nqmgr[4248]: fatal: match_list_parse: open file /etc/postfix/localdomains: No such file or directory
Aug 24 09:23:52 webserver postfix/master[7171]: warning: process /usr/libexec/postfix/nqmgr pid 4248 exit status 1
Aug 24 09:23:52 webserver postfix/master[7171]: warning: /usr/libexec/postfix/nqmgr: bad command startup -- throttling
Aug 24 09:24:34 webserver postfix/smtpd[4300]: fatal: match_list_parse: open file /etc/postfix/localdomains: No such file or directory
Aug 24 09:24:35 webserver postfix/master[7171]: warning: process /usr/libexec/postfix/smtpd pid 4300 exit status 1
Aug 24 09:24:35 webserver postfix/master[7171]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
Aug 24 09:24:48 webserver postfix/pickup[4316]: fatal: match_list_parse: open file /etc/postfix/localdomains: No such file or directory
Aug 24 09:24:49 webserver postfix/master[7171]: warning: process /usr/libexec/postfix/pickup pid 4316 exit status 1
Aug 24 09:24:49 webserver postfix/master[7171]: warning: /usr/libexec/postfix/pickup: bad command startup -- throttling
Aug 24 09:24:52 webserver postfix/nqmgr[4322]: fatal: match_list_parse: open file /etc/postfix/localdomains: No such file or directory
Aug 24 09:24:53 webserver postfix/master[7171]: warning: process /usr/libexec/postfix/nqmgr pid 4322 exit status 1
Aug 24 09:24:53 webserver postfix/master[7171]: warning: /usr/libexec/postfix/nqmgr: bad command startup -- throttling
Aug 24 09:25:35 webserver postfix/smtpd[4373]: fatal: match_list_parse: open file /etc/postfix/localdomains: No such file or directory
Aug 24 09:25:36 webserver postfix/master[7171]: warning: process /usr/libexec/postfix/smtpd pid 4373 exit status 1
Aug 24 09:25:36 webserver postfix/master[7171]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
Aug 24 09:25:49 webserver postfix/pickup[4392]: fatal: match_list_parse: open file /etc/postfix/localdomains: No such file or directory
Aug 24 09:25:50 webserver postfix/master[7171]: warning: process /usr/libexec/postfix/pickup pid 4392 exit status 1
Aug 24 09:25:50 webserver postfix/master[7171]: warning: /usr/libexec/postfix/pickup: bad command startup -- throttling
Aug 24 09:25:53 webserver postfix/nqmgr[4399]: fatal: match_list_parse: open file /etc/postfix/localdomains: No such file or directory
Aug 24 09:25:54 webserver postfix/master[7171]: warning: process /usr/libexec/postfix/nqmgr pid 4399 exit status 1
Aug 24 09:25:54 webserver postfix/master[7171]: warning: /usr/libexec/postfix/nqmgr: bad command startup -- throttling


Does anyone have any ideas of what the problem is?

Thanks in advance for your help :)

Wes

trickykid 08-24-2005 09:58 AM

Post your config file and what is the contents of /var/spool/postfix or /var/spool/mail, wherever you might have postfix files needed to run properly? I believe it might be a problem with postfix running in a chroot mode and your missing files from the /var locations.

wfernley 08-24-2005 10:18 AM

/var/spool/mail
dan info links mysql ncrftp support wes wesftp wfernley

/var/spool/postfix
active bounce corrupt defer deferred etc flush hold incoming maildrop pid private public saved

and this is my main.cf file:

queue_directory = /var/spool/postfix

command_directory = /usr/sbin

daemon_directory = /usr/libexec/postfix

mail_owner = postfix

default_privs = nobody

# myhostname
myhostname = mail.networkcamerareviews.com

# mydomain
mydomain = networkcamerareviews.com

myorigin = $mydomain

inet_interfaces = all

# virtual_alias_maps = dbm:/etc/postfix/virtual
virtual_alias_maps = hash:/etc/postfix/virtual

permit_mx_backup = yes

mydestination = $myhostname, $mydomain, localhost.$mydomain, /etc/postfix/localdomains
relay_domains = $mydestination, /etc/postfix/relaydomains

#unknown_local_recipient_reject_code = 550

unknown_local_recipient_reject_code = 450
mynetworks = 205.207.118.0/24

#relayhost = $mydomain
#relayhost = gateway.my.domain
#relayhost = uucphost
#relayhost = [an.ip.add.ress]

#relay_recipient_maps = hash:/etc/postfix/relay_recipients

alias_maps = hash:/etc/aliases
#alias_maps = hash:/etc/aliases
#alias_maps = hash:/etc/aliases, nis:mail.aliases
#alias_maps = netinfo:/aliases

alias_database = hash:/etc/aliases
#alias_database = dbm:/etc/mail/aliases
#alias_database = hash:/etc/aliases
# alias_database = hash:/etc/aliases
#alias_database = hash:/etc/aliases, hash:/opt/majordomo/aliases

# smtpd_client_restrictions = permit_mynetworks
# smtpd_helo_restrictions = reject_non_fqdn_hostname, reject_unknown_hostname, reject_invalid_hostname
# smtpd_sender_restrictions = permit_mynetworks, check_sender_access dbm:/etc/postfix/access
#smtpd_recipient_restrictions = permit_mynetworks, check_relay_domains

# debug_peer_level = 2
# debugger_command =
# PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
# xxgdb $daemon_directory/$process_name $process_id & sleep 5

# If you don't have X installed on the Postfix machine, try:
# debugger_command =
# PATH=/bin:/usr/bin:/usr/local/bin; export PATH; (echo cont;
# echo where) | gdb $daemon_directory/$process_name $process_id 2>&1
# >$config_directory/$process_name.$process_id.log & sleep 5

sendmail_path = /usr/lib/sendmail

newaliases_path = /usr/sbin/newaliases

# mailq_path: The full pathname of the Postfix mailq command. This
# is the Sendmail-compatible mail queue listing command.
#
mailq_path = /usr/sbin/mailq

setgid_group = postdrop

manpage_directory = /usr/local/man

sample_directory = /etc/postfix

readme_directory = /usr/local/doc
mailbox_size_limit = 25242880
message_size_limit = 25242880

# transport_maps = dbm:/etc/postfix/transport

# smtpd_banner = $myhostname ESMTP $mail_name
smtpd_history_flush_threshold = 100
smtpd_recipient_limit = 45
smtpd_timeout = 300s
#smtpd_error_sleep_time = 5
#smtpd_soft_error_limit = 10
#smtpd_hard_error_limit = 100
smtpd_helo_required = yes
strict_rfc821_envelopes = yes
disable_vrfy_command = yes
local_recipient_maps =
maps_rbl_domains = relays.ordb.org, bl.spamcop.net

# removed 10/9/03 de list.dsbl.org, multihop.dsbl.org

#
# UCE RESTRICTIONS
#

unknown_address_reject_code = 554
unknown_hostname_reject_code = 554
unknown_client_reject_code = 554
smtpd_client_restrictions =
smtpd_helo_restrictions =
smtpd_sender_restrictions =
smtpd_recipient_restrictions =
reject_unknown_recipient_domain,
reject_unknown_sender_domain ,
reject_unauth_pipelining,
permit_mynetworks,
check_sender_access hash:/etc/postfix/access,
reject_unauth_destination,
reject_maps_rbl,
permit

wfernley 08-24-2005 10:22 AM

here is a more indepth look at /var/spool/postfix


[root@mail postfix]# ls -R
.:
active bounce corrupt defer deferred etc flush hold incoming maildrop pid private public saved

./active:

./bounce:

./corrupt:

./defer:

./deferred:

./flush:

./hold:

./incoming:

./maildrop:

./pid:
inet.smtp master.pid

./private:
bounce bsmtp cyrus defer error ifmail lmtp local maildrop old-cyrus proxymap relay rewrite smtp uucp virtual

./public:
cleanup flush pickup qmgr showq

./saved:


All times are GMT -5. The time now is 06:14 PM.