HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   General (http://www.howtoforge.com/forums/forumdisplay.php?f=15)
-   -   postfix smtpd error in postix server (http://www.howtoforge.com/forums/showthread.php?t=36185)

jeaoslab 10th June 2009 02:40

postfix smtpd error in postix server
 
I install sipconfig an configure postfix whith relay-host mailserver and i obtain this error
can any helpme

this is may mail.log

Jun 9 19:31:35 server1 master[19128]: fatal: master_spawn: exec /usr/lib/postfix/smptd: No such file or directory
Jun 9 19:31:36 server1 postfix/master[18784]: warning: process /usr/lib/postfix/smptd pid 19128 exit status 1
Jun 9 19:31:36 server1 postfix/master[18784]: warning: /usr/lib/postfix/smptd: bad command startup -- throttling
Jun 9 19:31:53 server1 postfix/smtp[19047]: 1D39810F0A93: to=<web5_admin@server1.jeaoslab.com.mx>, orig_to=<admin@cimesc.com>, relay=server1.jeaoslab.com.mx[201.137.174.252]:587, delay=2236, delays=1936/0.06/300/0, dsn=4.4.2, status=deferred (conversation with server1.jeaoslab.com.mx[201.137.174.252] timed out while receiving the initial server greeting)
Jun 9 19:32:36 server1 master[19143]: fatal: master_spawn: exec /usr/lib/postfix/smptd: No such file or directory
Jun 9 19:32:37 server1 postfix/master[18784]: warning: process /usr/lib/postfix/smptd pid 19143 exit status 1
Jun 9 19:32:37 server1 postfix/master[18784]: warning: /usr/lib/postfix/smptd: bad command startup -- throttling
Jun 9 19:33:37 server1 master[19157]: fatal: master_spawn: exec /usr/lib/postfix/smptd: No such file or directory
Jun 9 19:33:38 server1 postfix/master[18784]: warning: process /usr/lib/postfix/smptd pid 19157 exit status 1
Jun 9 19:33:38 server1 postfix/master[18784]: warning: /usr/lib/postfix/smptd: bad command startup -- throttling
Jun 9 19:34:38 server1 master[19170]: fatal: master_spawn: exec /usr/lib/postfix/smptd: No such file or directory
Jun 9 19:34:39 server1 postfix/master[18784]: warning: process /usr/lib/postfix/smptd pid 19170 exit status 1
Jun 9 19:34:39 server1 postfix/master[18784]: warning: /usr/lib/postfix/smptd: bad command startup -- throttling

this is may mail.err
Jun 9 19:27:31 server1 master[19056]: fatal: master_spawn: exec /usr/lib/postfix/smptd: No such file or directory
Jun 9 19:28:32 server1 master[19076]: fatal: master_spawn: exec /usr/lib/postfix/smptd: No such file or directory
Jun 9 19:29:33 server1 master[19090]: fatal: master_spawn: exec /usr/lib/postfix/smptd: No such file or directory
Jun 9 19:30:01 server1 postfix/smtpd[19100]: fatal: non-null host address bits in "192.168.1.0/8", perhaps you should use "192.0.0.0/8" instead
Jun 9 19:30:34 server1 master[19113]: fatal: master_spawn: exec /usr/lib/postfix/smptd: No such file or directory
Jun 9 19:31:35 server1 master[19128]: fatal: master_spawn: exec /usr/lib/postfix/smptd: No such file or directory
Jun 9 19:32:36 server1 master[19143]: fatal: master_spawn: exec /usr/lib/postfix/smptd: No such file or directory
Jun 9 19:33:37 server1 master[19157]: fatal: master_spawn: exec /usr/lib/postfix/smptd: No such file or directory
Jun 9 19:34:38 server1 master[19170]: fatal: master_spawn: exec /usr/lib/postfix/smptd: No such file or directory
Jun 9 19:35:39 server1 master[19190]: fatal: master_spawn: exec /usr/lib/postfix/smptd: No such file or directory

this is netstat -tap

Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 localhost.localdom:2208 *:* LISTEN 2409/hpiod
tcp 0 0 *:mysql *:* LISTEN 2497/mysqld
tcp 0 0 192.168.1.70:submission *:* LISTEN 18784/master
tcp 0 0 *:sunrpc *:* LISTEN 2128/portmap
tcp 0 0 *:81 *:* LISTEN 24605/ispconfig_htt
tcp 0 0 *:auth *:* LISTEN 2778/inetd
tcp 0 0 *:ftp *:* LISTEN 28565/proftpd: (acc
tcp 0 0 192.168.1.70:domain *:* LISTEN 29831/named
tcp 0 0 localhost.locald:domain *:* LISTEN 29831/named
tcp 0 0 localhost.localdoma:ipp *:* LISTEN 2683/cupsd
tcp 0 0 *:smtp *:* LISTEN 18784/master
tcp 0 0 localhost.localdoma:953 *:* LISTEN 29831/named
tcp 0 0 *:57145 *:* LISTEN 2940/rpc.statd
tcp 0 0 localhost.localdo:53022 *:* LISTEN 2412/python
tcp 1 0 192.168.1.70:submission dsl-201-137-174-2:46294 CLOSE_WAIT -
tcp 1 0 192.168.1.70:submission dsl-201-137-174-2:49137 CLOSE_WAIT -
tcp6 0 0 *:imaps *:* LISTEN 2645/couriertcpd
tcp6 0 0 *:pop3s *:* LISTEN 2664/couriertcpd
tcp6 0 0 *:pop3 *:* LISTEN 2650/couriertcpd
tcp6 0 0 *:imap2 *:* LISTEN 2624/couriertcpd
tcp6 0 0 *:www *:* LISTEN 17626/apache2
tcp6 0 0 *:ssh *:* LISTEN 2873/sshd
tcp6 0 0 *:smtp *:* LISTEN 18784/master
tcp6 0 0 ip6-localhost:953 *:* LISTEN 29831/named
tcp6 0 0 *:https *:* LISTEN 17626/apache2
tcp6 0 0 ::ffff:192.168.1.70:ssh ::ffff:192.168.1.:46262 ESTABLISHED18056/sshd: lucas [
tcp6 0 0 ::ffff:192.168.1.70:ssh ::ffff:192.168.1.:46263 ESTABLISHED18086/sshd: lucas [
tcp6 0 0 ::ffff:192.168.1.70:ssh ::ffff:192.168.1.:60206 ESTABLISHED19063/2

this is my uname -a
Linux server1.jeaoslab.com.mx 2.6.18-4-686 #1 SMP Wed May 9 23:03:12 UTC 2007 i686 GNU/Linux

I USE THIS GUIDE TO INSTALL
http://www.howtoforge.com/perfect_setup_debian_etch
AND MY MAILS CAN SEND BUT CANT RECIVE ANY MAIL FOR ANY DOMAINS IN MAY HOSTING

till 10th June 2009 08:48

Please post the content of the master.cf file.

jeaoslab 10th June 2009 15:01

consfiguration
 
this is main.cf
Quote:

# 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 (Debian/GNU)
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/postfix/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.

myhostname = server1.jeaoslab.com.mx
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
#mydestination = server1.jeaoslab.com.mx, localhost.jeaoslab.com.mx, , localhost.localdomain, localhost
relayhost = [smtp.gmail.com]:587
mynetworks = 192.168.1.0/16
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
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
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl/passwd
smtp_sasl_security_options = noanonymous
transport_maps = hash:/etc/postfix/postfix-config/transport
this is master.cf
Quote:

#
# Postfix master process configuration file. For details on the format
# of the file, see the master(5) manual page (command: "man 5 master").
#
# ================================================== ========================
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
# ================================================== ========================
192.168.1.70:587 inet n - n - - smptd
smtp inet n - - - - smtpd
#submission inet n - - - - smtpd
# -o smtpd_enforce_tls=yes
# -o smtpd_sasl_auth_enable=yes
# -o smtpd_client_restrictions=permit_sasl_authenticate d,reject
#smtps inet n - - - - smtpd
# -o smtpd_tls_wrappermode=yes
# -o smtpd_sasl_auth_enable=yes
# -o smtpd_client_restrictions=permit_sasl_authenticate d,reject
#628 inet n - - - - qmqpd
pickup fifo n - - 60 1 pickup
cleanup unix n - - - 0 cleanup
qmgr fifo n - n 300 1 qmgr
#qmgr fifo n - - 300 1 oqmgr
tlsmgr unix - - - 1000? 1 tlsmgr
rewrite unix - - - - - trivial-rewrite
bounce unix - - - - 0 bounce
defer unix - - - - 0 bounce
trace unix - - - - 0 bounce
verify unix - - - - 1 verify
flush unix n - - 1000? 0 flush
proxymap unix - - n - - proxymap
smtp unix - - - - - smtp
# When relaying mail as backup MX, disable fallback_relay to avoid MX loops
relay unix - - - - - smtp
-o fallback_relay=
# -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq unix n - - - - showq
error unix - - - - - error
discard unix - - - - - discard
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - - - - lmtp
anvil unix - - - - 1 anvil
scache unix - - - - 1 scache
#
# ================================================== ==================
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
#
# Many of the following services use the Postfix pipe(8) delivery
# agent. See the pipe(8) man page for information about ${recipient}
# and other message envelope options.
# ================================================== ==================
#
# maildrop. See the Postfix MAILDROP_README file for details.
# Also specify in main.cf: maildrop_destination_recipient_limit=1
#
maildrop unix - n n - - pipe
flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient}
#
# See the Postfix UUCP_README file for configuration details.
#
uucp unix - n n - - pipe
flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
#
# Other external delivery methods.
#
ifmail unix - n n - - pipe
flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp unix - n n - - pipe
flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient
scalemail-backend unix - n n - 2 pipe
flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension}
mailman unix - n n - - pipe
flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
${nexthop} ${user}

thanks for response

till 10th June 2009 16:06

You have a typo in your master.cf file. The line:

Code:

192.168.1.70:587 inet n - n - - smptd
has to be

Code:

192.168.1.70:587 inet n - n - - smtpd

jeaoslab 11th June 2009 01:53

its wll
 
i do taht do you tell me but i cant resive mail for other mail servers

I chech the mail. log, mail.err, syslog , mail.info
and dont have problem but cant recive mail
this is te postqueue result

Quote:

server1:/var/log# postqueue -p
-Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
478F510F0A8E 630 Wed Jun 10 18:30:01 root@server1.jeaoslab.com.mx
(connect to server1.jeaoslab.com.mx[xxx.xxx.xxx.xxx]: Connection timed out)
user@server1.domain.com

-- 0 Kbytes in 1 Request.
but the ip apears in this queue ist incorrect what can i do

till 11th June 2009 09:20

Make sure that the IP in /etc/hosts for server1.jeaoslab.com.mx exists and that it is correct.

jeaoslab 15th June 2009 19:53

The problem continue the mails are in queue an teh error continiu y cant recibe any mail in any domain

server1:/home/lucas# cat /etc/hosts
127.0.0.1 localhost.localdomain localhost
127.0.0.1 server1.mydomain.com server1



the tail of syslog

Jun 15 12:22:36 server1 postfix/qmgr[26509]: 02F3F10F0B18: to=<web2_admin@server1.mydomain.com>, orig_to=<admin@mydomain.com>, relay=none, delay=127356, delays=127348/7.3/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to server1.mydomain.com[xxx.xxx.xxx.xxx]: Connection refused)
Jun 15 12:22:36 server1 postfix/qmgr[26509]: 0CC0B10F0A9C: to=<web2_admin@server1.mydomain.com>, orig_to=<admin@mydomain.com>, relay=none, delay=364955, delays=364947/7.3/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to server1.mydomain.com[xxx.xxx.xxx.xxx]: Connection refused)

i review all problems but i dont have the answer


All times are GMT +2. The time now is 08:43.

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