Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

postfix: fatal: unknown service: smtp/tcp

369 views
Skip to first unread message

Thomas Thiersch

unread,
Jun 5, 2000, 3:00:00 AM6/5/00
to
Hallo!

Obigen Spruch kriege ich zu hören, wenn ich Mail nach draußen
versenden will.
Das Drumherum:

Jun 5 12:18:14 opa postfix/smtp[7130]: fatal: unknown service:
smtp/tcp
Jun 5 12:18:14 opa postfix/smtp[7131]: fatal: unknown service:
smtp/tcp
Jun 5 12:18:15 opa postfix/qmgr[7124]: warning: mail_scan_any: got
EOF; expected: string
Jun 5 12:18:15 opa postfix/master[195]: warning: process
/usr/lib/postfix/smtp pid 7130 exit status 1
Jun 5 12:18:15 opa postfix/master[195]: warning:
/usr/lib/postfix/smtp: bad command startup -- throttling
Jun 5 10:18:15 opa postfix/qmgr[7124]: warning: private/smtp:
malformed response
Jun 5 10:18:15 opa postfix/qmgr[7124]: warning: mail_scan_any: got
EOF; expected: string
Jun 5 12:18:15 opa postfix/master[195]: warning: process
/usr/lib/postfix/smtp pid 7131 exit status 1
Jun 5 10:18:15 opa postfix/qmgr[7124]: warning: private/smtp:
malformed response


Der interne Mailverkehr klappt prima, canonical und virtual laufen
auch.

Die Konfiguration:
Suse 6.2;
Postfix-19991231-pl08 selbstkompiliert

root@opa:~ > postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
canonical_maps = hash:/etc/postfix/canonical
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
debug_peer_level = 2
default_destination_concurrency_limit = 10
delay_warning_time = 4
local_destination_concurrency_limit = 2
mail_owner = postfix
mailbox_transport = cyrus
mydomain = damaschke
myhostname = opa.damaschke
queue_directory = /var/spool/postfix
virtual_maps = hash:/etc/postfix/virtual

root@opa:~ > cat /etc/postfix/master.cf
smtp inet n - y - - smtpd
pickup fifo n n y 60 1 pickup
cleanup unix - - y - 0 cleanup
qmgr fifo n - y 300 1 qmgr
rewrite unix - - y - - trivial-rewrite
bounce unix - - y - 0 bounce
defer unix - - y - 0 bounce
smtp unix - - y - - smtp
showq unix n - y - - showq
error unix - - y - - error
local unix - n n - - local
cyrus unix - n n - - pipe
flags=R user=cyrus argv=/usr/cyrus/bin/deliver -e -m ${extension}
${user}


Was ist da schief? Warum gibt's den Service smtp/tcp nicht? Habe ich
was vergessen?

Dankbar für Hilfe ist

Thomas

Ralf Hildebrandt

unread,
Jun 5, 2000, 3:00:00 AM6/5/00
to
On Mon, 05 Jun 2000 12:41:13 +0200, Thomas Thiersch <thomas....@gmx.de> wrote:

>Jun 5 12:18:14 opa postfix/smtp[7130]: fatal: unknown service:
>smtp/tcp

Steht in /etc/services:
smtp 25/tcp # Simple Mail Transfer Protocol
?

Auch im chroot-jail? (/var/spool/postfix/etc/services)?

>Der interne Mailverkehr klappt prima, canonical und virtual laufen
>auch.

Der nimmt ja kein SMTP...

>root@opa:~ > postconf -n
Ah!

>root@opa:~ > cat /etc/postfix/master.cf
Siehste, Du laesst es chrooted laufen!

>smtp inet n - y - - smtpd

^-!!!

Thomas Thiersch

unread,
Jun 5, 2000, 3:00:00 AM6/5/00
to

Ralf Hildebrandt schrieb:


>
> >root@opa:~ > cat /etc/postfix/master.cf
> Siehste, Du laesst es chrooted laufen!
>
> >smtp inet n - y - - smtpd
> ^-!!!

"-" geht nicht, aber "n" haut hin!

Vielen Dank für die superschnelle Antwort!

Thomas

Message has been deleted

Thomas Thiersch

unread,
Jun 6, 2000, 3:00:00 AM6/6/00
to

Heiko Schlenker schrieb:
>
> Halt! Postfix aus dem Chroot-Gefaengnis zu entlassen, ist *keine*
> gute Idee. Du hast Ralf missverstanden.

Öh, stimmt. Das kommt davon, wenn man mal eben schnellschnell was
ausprobiert, und das Hirn ist ausgeschaltet :-|

>
> Vielmehr fehlen in Deiner Chroot-Umgebung offenbar wichtige Dateien.
>
> Beispiel:
> > ls -l /var/spool/postfix/etc

Hm. Sind alle da und aktuell.

> > /bin/ls /var/spool/postfix/lib/*.so

sieht bei mir irgendwie anders aus:

libdb.so.2
libdb.so.3
libnss_db.so.1
libnss_db.so.2
libnss_dns.so.1
libnss_dns.so.2
libnss_files.so.1
libnss_files.so.2
libresolv.so.2


Hab ich da beim Compilieren irgendeinen Schalter vergessen?

Warum meckert 'postfix check' nicht?

Grüße
Thomas

Message has been deleted

Ralf Hildebrandt

unread,
Jun 6, 2000, 3:00:00 AM6/6/00
to
On 6 Jun 2000 12:42:20 +0200, Heiko Schlenker <hsc...@gmx.de> wrote:

>Das weiss ich nicht. Du koenntest aber einige Postfix-Dienste
>geschwaetziger machen. Aendere /etc/postfix/master.cf doch mal
>so ab, dass hinter den Kommandos ein oder mehrere "-v"-Schalter
>stehen. Beispiel:
>alt:


> smtp inet n - y - - smtpd

>neu:
> smtp inet n - y - - smtpd -v -v
>

Das ist generell ne gute Idee, kann aber hier nicht klappen, da die Daemonen
ohne die shared libs GAR NICHT starten, also auch nix loggen koennen... :)


Ralf Hildebrandt

unread,
Jun 6, 2000, 3:00:00 AM6/6/00
to
On 5 Jun 2000 14:33:23 +0200, Heiko Schlenker <hsc...@gmx.de> wrote:

>Halt! Postfix aus dem Chroot-Gefaengnis zu entlassen, ist *keine*
>gute Idee. Du hast Ralf missverstanden.

Na SOOO schlimm ists auch nicht...

>Vielmehr fehlen in Deiner Chroot-Umgebung offenbar wichtige Dateien.

Das meinte ich auch so.

Ralf Hildebrandt

unread,
Jun 6, 2000, 3:00:00 AM6/6/00
to
On Tue, 06 Jun 2000 10:15:12 +0200, Thomas Thiersch <thomas....@gmx.de> wrote:

>Warum meckert 'postfix check' nicht?

Weil das nicht chroot-ed laeuft und nur die Konfiguration, nicht das
environment checkt...

Thomas Thiersch

unread,
Jun 7, 2000, 3:00:00 AM6/7/00
to

Ralf Hildebrandt schrieb:


>
>
> Na SOOO schlimm ists auch nicht...
>

OK. Außerdem ist meine Kiste von außen nicht erreichbar. Aber wenn man
sendmail schon mal wegschmeißt...

Thomas Thiersch

unread,
Jun 7, 2000, 3:00:00 AM6/7/00
to

Heiko Schlenker schrieb:
>
> Stimmen die Zugriffsrechte? Was steht in

Ja.

> "/var/spool/postfix/etc/nsswitch.conf"?

root@opa:/var/spool/postfix/etc > cat nsswitch.conf
passwd: compat
group: compat

hosts: files dns
networks: files dns

services: db files
protocols: db files
rpc: db files
ethers: db files
netmasks: files
netgroup: files
bootparams: files

automount: files
aliases: files

>
> Das scheinen nur symbolische Links zu sein. Hm, wo sind die
> eigentlichen Bibliotheken? Was sagt "ls -l /var/spool/postfix/lib"?

Nö. Die sind alle echt :-(

root@opa:/var/spool/postfix/lib > ls -l
total 2117
-rwxr-xr-x 1 root root 224014 Jun 5 12:49 libdb.so.2
-rwxr-xr-x 1 root root 820824 Jun 5 12:49 libdb.so.3
-rwxr-xr-x 1 root root 156771 Jun 5 12:49 libnss_db.so.1
-rwxr-xr-x 1 root root 202226 Jun 5 12:49 libnss_db.so.2
-rwxr-xr-x 1 root root 64037 Jun 5 12:49 libnss_dns.so.1
-rwxr-xr-x 1 root root 66038 Jun 5 12:49 libnss_dns.so.2
-rwxr-xr-x 1 root root 212060 Jun 5 12:49
libnss_files.so.1
-rwxr-xr-x 1 root root 242541 Jun 5 12:49
libnss_files.so.2
-rwxr-xr-x 1 root root 161248 Jun 5 12:49 libresolv.so.2

Wat nu?


Grüße
Thomas

Message has been deleted

Thomas Thiersch

unread,
Jun 8, 2000, 3:00:00 AM6/8/00
to

Heiko Schlenker schrieb:
>
> * Thomas Thiersch <thomas....@gmx.de> schrieb:
>
> > Wat nu?
>
> Welche Postfix-Version verwendest Du ueberhaupt? Naja, Du koenntest

Postfix-19991231-pl08 selbstgebaut, wie eingangs erwähnt.

Allerdings habe ich vorher das fertige Teil von SuSE 6.2 probiert, hat
aber überhaupt nicht hingehauen. Irgendwo in Deja hab ich dann
gelesen, das das Ding vermurkst ist. Also hab ich es wieder
runtergeschmissen und die Sourcen von der Postfix-Site gezogen.
Vielleich hängen ja noch irgendwelche Reste irgendwo rum. Aber wenn
ich ein mit Yast installiertes Paket mit Yast wieder deinstalliere,
sollte das doch ordentlich ablaufen, oder?

> als erstes Postfix mit mehreren "-v"-Switches starten und dann die
> Syslog-Protokolle im Auge behalten.

Cool! Selbst ein einziges -v schmeißt schon 556 Zeilen Meldungen raus!
Das Posting erspar ich euch mal :-)
Wenn ich nichts übersehen habe, war das einzig Verwertbare das
Warning, daß /var/spool/postfix nicht root gehört.

Hab ich geändert, allerdings ohne große Hoffnung, aber:
jetzt klappts auch chrooted! komisch...

Jedenfalls, vielen Dank für Eure Hilfe.

Grüße
Thomas

0 new messages