| Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
Due to network maintenance being performed by our provider, LQ will be down starting at 05:01 AM UTC. The exact duration of the downtime isn't currently known. We apologize for the inconvenience.
|
 |
04-19-2007, 11:08 PM
|
#1
|
|
Member
Registered: Nov 2005
Location: The Netherlands
Posts: 66
Rep:
|
FC6 Postfix can recieve but not send
Hello,
I have been at this issue all day.
i followed "the perfect setup" at how to forge.
now everything went pretty well.. i done this for years..
however suddenly postfix just refuses to send out emails.
it is running (netstat -tap shows it)
i can also recieve mail.
now the error that i get is this:
Code:
Apr 20 05:55:00 compnetix postfix/smtp[20467]: fatal: unknown service: smtp/tcp
Apr 20 03:55:01 compnetix postfix/qmgr[20373]: warning: premature end-of-input on private/smtp socket while reading input attribute name
Apr 20 03:55:01 compnetix postfix/qmgr[20373]: warning: private/smtp socket: malformed response
Apr 20 03:55:01 compnetix postfix/qmgr[20373]: warning: transport smtp failure -- see a previous warning/fatal/panic logfile record for the problem description
Apr 20 05:55:01 compnetix postfix/master[19609]: warning: process /usr/libexec/postfix/smtp pid 20467 exit status 1
Apr 20 05:55:01 compnetix postfix/master[19609]: warning: /usr/libexec/postfix/smtp: bad command startup -- throttling
Apr 20 03:55:01 compnetix postfix/qmgr[20373]: C09A21CB0089: to=<emailadres@goeshere.com>, relay=none, delay=1, delays=0.01/1/0/0, dsn=4.3.0, status=deferred (unknown mail transport error)
my postfix config is this:
Code:
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
unknown_local_recipient_reject_code = 550
alias_maps = hash:/etc/aliases
debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
xxgdb $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/sbin/sendmail.postfix
newaliases_path = /usr/bin/newaliases.postfix
mailq_path = /usr/bin/mailq.postfix
setgid_group = postdrop
html_directory = no
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/postfix-2.3.3/samples
readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES
smtpd_sasl_local_domain =
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_tls_auth_only = no
smtp_use_tls = yes
smtpd_use_tls = yes
smtp_tls_note_starttls_offer = yes
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
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
home_mailbox = Maildir/
mailbox_command =
allow_untrusted_routing = yes
ignore_mx_lookup_error = yes
debug_peer_list = smartwavetech.com
virtual_maps = hash:/etc/postfix/virtusertable
disable_vrfy_command = yes
does anyone have a clue?
Thanks in advance,
Marco
|
|
|
|
04-20-2007, 01:31 AM
|
#2
|
|
Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678
Rep: 
|
Could be a problem in master.cf What's in there?
|
|
|
|
04-20-2007, 04:38 AM
|
#3
|
|
Member
Registered: Nov 2005
Location: The Netherlands
Posts: 66
Original Poster
Rep:
|
Hello,
And thank you for your reply
here's my master.cf:
Code:
#
# Postfix master process configuration file. For details on the format
# of the file, see the Postfix master(5) manual page.
#
# ==========================================================================
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
# ==========================================================================
smtp inet n - - - - smtpd
#submission inet n - - - - smtpd
# -o smtpd_etrn_restrictions=reject
# -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#smtps inet n - - - - smtpd
# -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes
#submission inet n - - - - smtpd
# -o smtpd_etrn_restrictions=reject
# -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes
#628 inet n - - - - qmqpd
pickup fifo n - - 60 1 pickup
cleanup unix n - - - 0 cleanup
qmgr fifo 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/local/bin/maildrop -d ${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 - - pipe
flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
${nexthop} ${user}
#
# vhcs delivery agent.
#
vhcs2-arpl unix - n n - - pipe flags=O user=vmail argv=/var/www/vhcs2/engine/messager/vhcs2-arpl-msgr
hmmm.. VHCS might cause some problems.. however i only see delivery, wile that works fine..
also sent local is working fine..
see anything in there out of the ordinary?
Regards,
Marco
|
|
|
|
04-20-2007, 04:48 AM
|
#4
|
|
Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678
Rep: 
|
Try
smtp inet n - n - - smtpd
Unless you're running the process chrooted
|
|
|
|
04-20-2007, 04:56 AM
|
#5
|
|
Member
Registered: Nov 2005
Location: The Netherlands
Posts: 66
Original Poster
Rep:
|
well..
that solved a few errors
but the importand one still remains
Code:
Apr 20 09:51:52 compnetix postfix/qmgr[26048]: 341ED1CB008F: to=<fatumandi@hotmail.com>, relay=none, delay=0.01, delays=0/0.01/0/0, dsn=4.3.0, status=deferred (unknown mail transport error)
any other ideas where it might lay?
|
|
|
|
04-20-2007, 05:19 AM
|
#6
|
|
Member
Registered: Nov 2005
Location: The Netherlands
Posts: 66
Original Poster
Rep:
|
Hi
i fixed the previouse error..
now i can send but not recieve?!
Code:
Apr 20 12:13:22 compnetix postfix/smtpd[27492]: NOQUEUE: reject: RCPT from basillia.speedxs.net[83.98.255.13]: 554 5.7.1 <admin@servxchain.com>: Relay access denied; from=<m.tiggelaar@compnetix.com> to=<admin@servxchain.com> proto=ESMTP helo=<basillia.speedxs.net>
my current master.cf is now this:
Code:
#
# Postfix master process configuration file. For details on the format
# of the file, see the Postfix master(5) manual page.
#
# ==========================================================================
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
# ==========================================================================
smtp inet n - n - - smtpd
#submission inet n - - - - smtpd
# -o smtpd_etrn_restrictions=reject
# -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#smtps inet n - - - - smtpd
# -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes
#submission inet n - - - - smtpd
# -o smtpd_etrn_restrictions=reject
# -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes
#628 inet n - - - - qmqpd
pickup fifo n - - 60 1 pickup
cleanup unix n - - - 0 cleanup
qmgr fifo 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 - - n - - 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/local/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 - - pipe
flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
${nexthop} ${user}
what did i remove that should have stayed there?
|
|
|
|
04-20-2007, 05:38 AM
|
#7
|
|
Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678
Rep: 
|
Try keeping unchrooting (does that make sense?)
eg
pickup fifo n - n 60 1 pickup
etc
|
|
|
|
04-20-2007, 05:41 AM
|
#8
|
|
Member
Registered: Nov 2005
Location: The Netherlands
Posts: 66
Original Poster
Rep:
|
hello..
i tryed that..
but then it doesn't work at all
now i located the real problem.
mydestination = $myhostname, localhost.$mydomain, $mydomain
if i have that line i can sent,
if i remove it i can recieve.
does that make any sence?
regards,
Marco
|
|
|
|
04-20-2007, 05:45 AM
|
#9
|
|
Member
Registered: Nov 2005
Location: The Netherlands
Posts: 66
Original Poster
Rep:
|
alright..
i figured it out
mydestination = /etc/postfix/local-host-names
relay_domains = $mydestination
that was what i needed to add
+ the little modifications you told me about in master.cf
i can send and recieve now
thank you for your help!
|
|
|
|
04-20-2007, 05:52 AM
|
#10
|
|
Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678
Rep: 
|
Glad I could help
Bill
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 08:10 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|