Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

Postfix: fatal: unknown service: smtp/tcp

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
9 posts • Page 1 of 1
Author
Message
ericdes
n00b
n00b
Posts: 17
Joined: Wed May 28, 2003 7:56 am

Postfix: fatal: unknown service: smtp/tcp

  • Quote

Post by ericdes » Wed Aug 23, 2006 2:28 pm

I'm not sure how I got into that :cry: . I don't remember having changed much in my email server configuration. Here's what I do:

This server just tells Postfix to send emails through a relay at this address 10.0.0.3 (It's another DomU server that does all the email work, Postfix, Amavis, Spamassassin...)

So my setup for this server (at 10.0.0.1) is very simple:

Code: Select all

relayhost = [10.0.0.3]
Since yesterday I've gotten those messages, and email hasn't been delivered...
Aug 23 07:12:04 es01 postfix/smtp[6788]: smtp_parse_destination: [10.0.0.3] smtp
Aug 23 07:12:04 es01 postfix/smtp[6788]: fatal: unknown service: smtp/tcp
Aug 23 07:12:05 es01 postfix/qmgr[31041]: warning: premature end-of-input on private/smtp socket while reading input attribute name
Aug 23 07:12:05 es01 postfix/qmgr[31041]: warning: private/smtp socket: malformed response
.......
Aug 23 07:12:05 es01 postfix/master[31039]: warning: process /usr/lib/postfix/smtp pid 6788 exit status 1
Aug 23 07:12:05 es01 postfix/master[31039]: warning: /usr/lib/postfix/smtp: bad command startup -- throttling
Aug 23 07:12:05 es01 postfix/qmgr[31041]: E69FF514D8: to=<***@*****.com>, relay=none, delay=2, status=deferred (delivery temporarily suspended: unknown mail transport error)
I'm wondering why it goes through smtp, shouldn't it just pass the email to 10.0.0.3? Nothing has been configured as chrooted in master.cf, what does the private in private/smtp mean?

I'm not sure what I should do from there? Any help?
Top
Ijon Tichy
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 80
Joined: Wed Feb 25, 2004 3:18 am
Location: Seattle, WA

  • Quote

Post by Ijon Tichy » Wed Aug 23, 2006 7:49 pm

Odd. That log line--
fatal: unknown service: smtp/tcp
Is usually an indication that your master.cf file is set up for chrooting the SMTP client, but the chroot environment isn't fully set up (Postfix FAQ "What does "fatal: unknown service: smtp/tcp" mean?).

Perhaps giving us a look at your master.cf file would help shed some light on things.
Death to VideoDrome.
Long live the New Flesh.
Top
ericdes
n00b
n00b
Posts: 17
Joined: Wed May 28, 2003 7:56 am

  • Quote

Post by ericdes » Wed Aug 23, 2006 9:14 pm

Every line is marked with n in the chroot column. How can I check otherwise if Postfix is running chrooted?
Top
kashani
Advocate
Advocate
User avatar
Posts: 2030
Joined: Mon Sep 02, 2002 6:38 am
Location: San Francisco
Contact:
Contact kashani
Website

  • Quote

Post by kashani » Wed Aug 23, 2006 9:24 pm

what happens when you remove the square brackets around the ip address and restart your Postfix?

kashani
Will personally fix your server in exchange for motorcycle related shop tools in good shape.
Top
ericdes
n00b
n00b
Posts: 17
Joined: Wed May 28, 2003 7:56 am

  • Quote

Post by ericdes » Wed Aug 23, 2006 9:53 pm

I changed to this

Code: Select all

relayhost = [10.0.0.3]:25
and it worked!!!
Top
.:chrome:.
Advocate
Advocate
User avatar
Posts: 4588
Joined: Sat Feb 19, 2005 7:19 pm
Location: Brescia, Italy

Re: Postfix: fatal: unknown service: smtp/tcp

  • Quote

Post by .:chrome:. » Thu Aug 24, 2006 8:10 am

check your /etc/services file
postfix can read it?
Top
ericdes
n00b
n00b
Posts: 17
Joined: Wed May 28, 2003 7:56 am

  • Quote

Post by ericdes » Thu Aug 24, 2006 10:41 am

/etc/services is read-write by root only. Postfix is running with username postfix.
Top
yottabit
Guru
Guru
User avatar
Posts: 313
Joined: Mon Nov 11, 2002 10:46 pm
Location: Columbus, Ohio, US
Contact:
Contact yottabit
Website

  • Quote

Post by yottabit » Tue Sep 05, 2006 6:43 pm

Thanks for this thread! I found that my /etc/services was set to root:root rw-/r--/---. I just gave other 'r' access and Postfix works now..

So this begs the question... how did this just start happening after years of use without changing my Postfix configuration? I did not upgrade Postfix, so it must have been a Gentoo layout or system file change?
[url=telnet://JacobMcDonald.net]Play The Hitchhiker's Guide to the Galaxy![/url]
Top
.:chrome:.
Advocate
Advocate
User avatar
Posts: 4588
Joined: Sat Feb 19, 2005 7:19 pm
Location: Brescia, Italy

  • Quote

Post by .:chrome:. » Tue Sep 05, 2006 11:42 pm

ericdes wrote:/etc/services is read-write by root only. Postfix is running with username postfix.
/etc/services must to be readable from ALL users
Top
Post Reply

9 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy