Page 1 of 1

Postfix: relay_recipient_maps geht nicht

Posted: 2006-04-19 19:58
by sammlerjaeger
Hi,

die Funktion relay_recipient_maps läuft bei mir nicht.

Code: Select all

relay_recipient_maps = hash:/etc/postfix/relay_recipients
Habe eine Datei relay_recipients mit dem aufbau:

Code: Select all

user1@example.com ok
dann ein postmap

Wo kann ich schauen wo der Wurm drin ist :roll:


Gruß
Sammlerjaeger

Re: Postfix: relay_recipient_maps geht nicht

Posted: 2006-04-19 20:08
by duergner
Was heißt funktioniert nicht? Kannst du mal noch eine Ausgabe von

Code: Select all

postconf -n
posten?

Re: Postfix: relay_recipient_maps geht nicht

Posted: 2006-04-19 21:20
by sammlerjaeger
postconf -n

Code: Select all

alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
config_directory = /etc/postfix
content_filter = amavis:[127.0.0.1]:10024
inet_interfaces = all
mailbox_size_limit = 0
mydestination = mail.example.com, localhost.localdomain, localhost
myhostname = mail.example.com
mynetworks = 127.0.0.0/8, 192.168.0.0/24
myorigin = /etc/mailname
recipient_delimiter = +
relay_recipient_maps = hash:/etc/postfix/relay_recipients
relayhost = 192.168.0.5
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)

Re: Postfix: relay_recipient_maps geht nicht

Posted: 2006-04-19 21:58
by duergner
relay_domains fehlt. *gg*

Re: Postfix: relay_recipient_maps geht nicht

Posted: 2006-04-20 08:05
by sammlerjaeger
relay_domains bringt nix :(

hier die mail.log

Code: Select all

Apr 20 07:50:52 localhost fetchmail[1093]: reading message m75*****@pop.1und1.de:39 of 39 (1426 octets) 
Apr 20 07:50:52 localhost fetchmail[1093]:  not flushed 
Apr 20 07:50:52 localhost postfix/sendmail[1106]: warning: the Postfix sendmail command has set-uid root file permissions
Apr 20 07:50:52 localhost postfix/sendmail[1106]: warning: or the command is run from a set-uid root process
Apr 20 07:50:52 localhost postfix/sendmail[1106]: warning: the Postfix sendmail command must be installed without set-uid root file permissions
Apr 20 07:50:52 localhost fetchmail[1093]: sleeping at Thu Apr 20 07:50:52 2006 
Apr 20 07:50:52 localhost postfix/pickup[1071]: E45D72A0021: uid=101 from=<fetchmail>
Apr 20 07:50:52 localhost postfix/cleanup[1108]: E45D72A0021: message-id=<1FWS3j-16V6NE0@fwd35.aul.t-online.de>
Apr 20 07:50:53 localhost postfix/qmgr[1072]: E45D72A0021: from=<fetchmail@mail.example.com>, size=1668, nrcpt=1 (queue active)
Apr 20 07:50:54 localhost postfix/smtpd[1114]: connect from localhost[127.0.0.1]
Apr 20 07:50:54 localhost postfix/smtpd[1114]: 1B2482A0022: client=localhost[127.0.0.1]
Apr 20 07:50:54 localhost postfix/cleanup[1108]: 1B2482A0022: message-id=<1FWS3j-16V6NE0@fwd35.aul.t-online.de>
Apr 20 07:50:54 localhost postfix/qmgr[1072]: 1B2482A0022: from=<fetchmail@mail.example.com>, size=2099, nrcpt=1 (queue active)
Apr 20 07:50:54 localhost postfix/smtpd[1114]: disconnect from localhost[127.0.0.1]
Apr 20 07:50:54 localhost amavis[916]: (00916-01) Passed, <fetchmail@mail.example.com> -> <user@example.com>, Message-ID: <1FWS3j-16V6NE0@fwd35.aul.t-online.de>, Hits: -0.223
Apr 20 07:50:54 localhost postfix/smtp[1110]: E45D72A0021: to=<user@example.com>, relay=127.0.0.1[127.0.0.1], delay=2, status=sent (250 2.6.0 Ok, id=00916-01, from MTA: 250 Ok: queued as 1B2482A0022)
Apr 20 07:50:54 localhost postfix/qmgr[1072]: E45D72A0021: removed
Apr 20 07:50:54 localhost postfix/smtp[1115]: 1B2482A0022: to=<user@example.com>, relay=192.168.0.5[192.168.0.5], delay=0, status=sent (250 2.6.0  <1FWS3j-16V6NE0@fwd35.aul.t-online.de> Queued mail for delivery)
Apr 20 07:50:54 localhost postfix/qmgr[1072]: 1B2482A0022: removed

Re: Postfix: relay_recipient_maps geht nicht

Posted: 2006-04-20 08:23
by flo
Der Fehler weist darauf hin, daß Du den Postfix aus fetchmail heraus aufrufst - übermittle die Mails per smtp und dann müsste das gehen.

Benutzt Du eigentlich auch Mailboxen - da stand leider nichts dazu. Eventuell kann man das Verhalten nachbilden, indem man von der Sendmail-Style-Virtual (mit accept-domains) nur die virtual benutzt. Dann werden die Mails auch schon beim SMTP gebounced und nicht erst nach dem erfolglosen Zustellversuch.

flo.

Re: Postfix: relay_recipient_maps geht nicht

Posted: 2006-04-20 11:30
by sammlerjaeger
Das geht nicht

Fetchmail gibt an procmail:
mda /usr/bin/procmail

Mailboxen habe ich nicht.

Das Ganze ist ein Relay Server.
fetchmail-procmail-postfix-amavis

Re: Postfix: relay_recipient_maps geht nicht

Posted: 2006-04-20 12:33
by flo
sammlerjaeger wrote:Fetchmail gibt an procmail:
mda /usr/bin/procmail
Und Procmail wieder an Postfix ?! ... Dann liegt der Hund da begraben.

flo.

Re: Postfix: relay_recipient_maps geht nicht

Posted: 2006-04-20 12:52
by sammlerjaeger
ein smtp localhost bei fetchmail würde dann auch nicht gehen....

Muß ich also den MX beim Provider (1und1) auf den Postfix umbiegen.

Habe keine feste IP, wie ist das mit der (Ausfall)-Sicherheit?


Gruß
Sammlerjaeger