LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 04-20-2007, 12:08 AM   #1
fatum112
Member
 
Registered: Nov 2005
Location: The Netherlands
Posts: 66

Rep: Reputation: 15
Question 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
 
Old 04-20-2007, 02:31 AM   #2
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Could be a problem in master.cf What's in there?
 
Old 04-20-2007, 05:38 AM   #3
fatum112
Member
 
Registered: Nov 2005
Location: The Netherlands
Posts: 66

Original Poster
Rep: Reputation: 15
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
 
Old 04-20-2007, 05:48 AM   #4
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Try

smtp inet n - n - - smtpd

Unless you're running the process chrooted
 
Old 04-20-2007, 05:56 AM   #5
fatum112
Member
 
Registered: Nov 2005
Location: The Netherlands
Posts: 66

Original Poster
Rep: Reputation: 15
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?
 
Old 04-20-2007, 06:19 AM   #6
fatum112
Member
 
Registered: Nov 2005
Location: The Netherlands
Posts: 66

Original Poster
Rep: Reputation: 15
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?
 
Old 04-20-2007, 06:38 AM   #7
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Try keeping unchrooting (does that make sense?)

eg

pickup fifo n - n 60 1 pickup

etc
 
Old 04-20-2007, 06:41 AM   #8
fatum112
Member
 
Registered: Nov 2005
Location: The Netherlands
Posts: 66

Original Poster
Rep: Reputation: 15
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
 
Old 04-20-2007, 06:45 AM   #9
fatum112
Member
 
Registered: Nov 2005
Location: The Netherlands
Posts: 66

Original Poster
Rep: Reputation: 15
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!
 
Old 04-20-2007, 06:52 AM   #10
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Glad I could help

Bill
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can send but not recieve namit Linux - Software 7 11-16-2005 06:28 PM
after connecting, how can i send/recieve files? marlor Linux - Wireless Networking 2 10-15-2004 03:52 PM
Can't recieve emails but can send them mosherben Linux - Software 12 08-10-2004 12:22 PM
recieve and send IP packets! Farhang Linux - Networking 1 07-25-2004 03:47 PM
cant send recieve mail with postfix bentman78 Linux - Software 3 05-05-2004 10:12 AM


All times are GMT -5. The time now is 12:55 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration