Hallo liebe Liste,
sorry, das wird ein wenig lang..
Ich habe ein Problem, welches mich seit 2 Tagen ein wenig verrückt
macht. Seitdem ich ein Kabelmodem habe,treibt mich der Gedanke um,
einen eigenen Mailserver aufzusetzen, um damit später eventuell
Amavis und SpamAssasin einzusetzen. Soweit bin ich jedoch noch
nicht, momentan hakts noch an dem reinen Mail-Empfang.
Was geht:
- Mails über die Konsole mittels mail nach "draußen" zu versenden.
Postfix nimmt sie entgegen und schickt sie dann über
den relay_host mail.gmx.net dann weiter. (Bei GMX habe ich meine
e-mail-Adresse.)
- Fetchmail holt von GMX die Mails ab.
Was nicht geht:
- Direkt nach dem Abholen übergibt Fetchmail die Mails an
Postfix, dieser jedoch stellt sie nicht in die lokalen Postfächer
zu, sondern stellt sie in die deferred_queue. Dort bleiben sie dann.
Das Problem liegt wohl darin, dass Postfix versucht, die abgeholten
Mails von Fetchmail wieder zu verschicken, anstatt sie lokal zu
zustellen. Wahrscheinlich kann er die lokalen Adressen nicht auflösen.
Ich habe schon gegoogelt, diese ganzen Tutorials sehen ja alle
total einfach aus. Ich verstehe die ja auch alle, nur funktionieren
sie bei mir nicht..Ich habe auch das Listenarchiv bemüht, viele
Lösungen sahen sehr vielversprechend aus, nur leider klappt das
nicht. Oder ich mache irgendwas total falsch.Ich habe alles
ausprobiert, mittlerweile ist meine main.cf total "zugemüllt"..
Jetzt ein paar Infos:
Ziel ist:
- vorerst alle abgeholten Mails von Fetchmail an mein lokales
Benutzerpostfach (mbox-file oder ähnliches) zuzustellen.
- später mal Amavis und SpamAssassin
postconf -n:
alias_database = hash:/etc/aliases, hash:/opt/majordomo/aliases
alias_maps = hash:/etc/postfix/aliases
canonical_maps = hash:/etc/postfix/canonical
command_directory = /usr/sbin
config_directory = /etc/postfix
content_filter =
daemon_directory = /usr/lib/postfix
debug_peer_level = 2
default_destination_concurrency_limit = 10
default_privs = nobody
defer_transports =
disable_dns_lookups = no
inet_interfaces = all
local_destination_concurrency_limit = 2
local_transport = local:$mydomain
mail_name = Postfix on SuSE Linux 8.0 (i386)
mail_owner = postfix
mail_spool_directory = /var/spool/mail
mailbox_command = /usr/bin/procmail
mailbox_transport = lmtp:unix:public/lmtp
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
masquerade_exceptions = root
mydestination = $myhostname, localhost.$mydomain
mydomain = linux.local
myhostname = linux
mynetworks = 127.0.0.0/8, 10.25.30.0/24
myorigin = $myhostname
newaliases_path = /usr/sbin/sendmail
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/packages/postfix/README_FILES
relayhost = mail.gmx.net
relocated_maps = hash:/etc/postfix/relocated
sample_directory = /etc/postfix
sender_canonical_maps = hash:/etc/postfix/sender_canonical
sendmail_path = /usr/sbin/sendmail
setgid_group = maildrop
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/smtp_auth
smtp_sasl_security_options = noanonymous
smtpd_sender_restrictions = hash:/etc/postfix/access
soft_bounce = yes
transport_maps = hash:/etc/postfix/transport
virtual_maps = hash:/etc/postfix/virtual
/etc/hosts:
::1 localhost ipv6-localhost ipv6-loopback
fe00::0 ipv6-localnet
ff00::0 ipv6-mcastprefix
ff02::1 ipv6-allnodes
ff02::2 ipv6-allrouters
ff02::3 ipv6-allhosts
127.0.0.1 localhost
127.0.0.2 linux.local linux
/home/acki/.fetchmailrc:
set postmaster "root"
set no spambounce
set properties ""
poll gmx via pop.gmx.de
with proto POP3
user '18079363' there with password 'geheim' is 'acki' here
tail -10 /var/log/mail: (gesnipped wegen zu viel Output)
Sep 17 21:34:08 linux postfix/cleanup[4649]: A7123FDF8:
message-id=<200309172128.27899.muab_ila@gmx.net>
Sep 17 21:34:08 linux postfix/smtp[4639]: 06210FDF1:
to=, relay=mail.gmx.net[213.165.64.20], delay=0,
status=deferred (host mail.gmx.net[213.165.64.20] said: 451 {mp001}
Sender address does not belong to logged in user)
Sep 17 21:34:08 linux postfix/qmgr[4630]: A7123FDF8:
from=,
size=2198, nrcpt=1 (queue active)
Sep 17 21:34:08 linux postfix/smtp[4650]: 35AB1FDF2:
to=, relay=mail.gmx.net[213.165.64.20], delay=0,
status=deferred (host mail.gmx.net[213.165.64.20] said: 451 {mp013}
Sender address does not belong to logged in user)
Sep 17 21:34:08 linux postfix/smtp[4652]: warning:
mail.gmx.net[213.165.64.20] offered AUTH option multiple times
Sep 17 21:34:08 linux postfix/smtpd[4648]: disconnect from
localhost[127.0.0.1]
Sep 17 21:34:08 linux postfix/smtp[4651]: 66414FDF6:
to=, relay=mail.gmx.net[213.165.64.20], delay=0,
status=deferred (host mail.gmx.net[213.165.64.20] said: 451 {mp022}
Sender address does not belong to logged in user)
Sep 17 21:34:08 linux postfix/smtp[4654]: warning:
mail.gmx.net[213.165.64.20] offered AUTH option multiple times
Sep 17 21:34:09 linux postfix/smtp[4652]: 88B64FDF7:
to=, relay=mail.gmx.net[213.165.64.20], delay=1,
status=deferred (host mail.gmx.net[213.165.64.20] said: 451 {mp003}
Sender address does not belong to logged in user)
Sep 17 21:34:09 linux postfix/smtp[4654]: A7123FDF8:
to=, relay=mail.gmx.net[213.165.64.20], delay=1,
status=deferred (host mail.gmx.net[213.165.64.20] said: 451 {mp016}
Sender address does not belong to logged in user
mailq: ca. 70 Requests sind noch drin, die schreibe ich nur auf
Anfrage, wird sonst zuviel auf einmal..
/etc/postfix/virtual:
axeldreher@gmx.de acki@linux.local
/etc/postfix/canonical:
acki@linux axeldreher@gmx.de
acki@linux.linux.local axeldreher@gmx.de
acki@linux.local axeldreher@gmx.de
acki@localhost.linux.local axeldreher@gmx.de
root@linux.local axeldreher@gmx.de
root@linux axeldreher@gmx.de
root@linux.linux.local axeldreher@gmx.de
root@localhost.linux.local axeldreher@gmx.de
Wie man sieht, habe ich alle möglichen Kombinationen mal ausgetestet..
fetchmail -a -vvvvv -k:
fetchmail: 5.9.0 querying gmx (protocol POP3) at Mit 17 Sep 2003
21:53:35 CEST
fetchmail: POP3< +OK GMX POP3 StreamProxy ready <8195.1063828412@mp001>
fetchmail: POP3> CAPA
fetchmail: POP3< -ERR Unknown command.
fetchmail: Unknown command.
fetchmail: POP3> USER 18079363
fetchmail: POP3< +OK May I have your password, please?
fetchmail: POP3> PASS *
fetchmail: POP3< +OK mailbox has 5 messages (14470 octets)
fetchmail: POP3> STAT
fetchmail: POP3< +OK 5 14470
5 messages for 18079363 at pop.gmx.de (14470 octets).
fetchmail: POP3> LIST
fetchmail: POP3< +OK mailbox has 5 messages (14470 octets)
fetchmail: POP3< 1 1091
fetchmail: POP3< 2 4448
fetchmail: POP3< 3 3447
fetchmail: POP3< 4 3562
fetchmail: POP3< 5 1922
fetchmail: POP3< .
fetchmail: POP3> RETR 1
fetchmail: POP3< +OK message follows
reading message 1 of 5 (1091 octets)
fetchmail: SMTP< 220 linux ESMTP Postfix on SuSE Linux 8.0 (i386)
fetchmail: SMTP> EHLO localhost
fetchmail: SMTP< 250-linux
fetchmail: SMTP< 250-PIPELINING
fetchmail: SMTP< 250-SIZE 10240000
fetchmail: SMTP< 250-VRFY
fetchmail: SMTP< 250-ETRN
fetchmail: SMTP< 250-XVERP
fetchmail: SMTP< 250 8BITMIME
fetchmail: SMTP> MAIL FROM: BODY=7BIT SIZE=1091
fetchmail: SMTP< 250 Ok
fetchmail: SMTP> RCPT TO:
fetchmail: SMTP< 250 Ok
fetchmail: SMTP> DATA
fetchmail: SMTP< 354 End data with <CR><LF>.<CR><LF>
#***********fetchmail: SMTP>. (EOM)
fetchmail: SMTP< 250 Ok: queued as A9C44FDF9
not flushed
[..snipped.....]
fetchmail: POP3> RETR 5
fetchmail: POP3< +OK message follows
reading message 5 of 5 (1922 octets)
fetchmail: SMTP> MAIL
FROM: BODY=7BIT
SIZE=1922
fetchmail: SMTP< 250 Ok
fetchmail: SMTP> RCPT TO:
fetchmail: SMTP< 250 Ok
fetchmail: SMTP> DATA
fetchmail: SMTP< 354 End data with <CR><LF>.<CR><LF>
#*******************fetchmail: SMTP>. (EOM)
fetchmail: SMTP< 250 Ok: queued as 5C3F7FDFD
not flushed
fetchmail: POP3> QUIT
fetchmail: POP3< +OK bye
fetchmail: SMTP> QUIT
fetchmail: SMTP< 221 Bye
fetchmail: normal termination, status 0
Das "not flushed" sagt einem ja schon, dass er die Mails nicht
zustellen konnte. Was mach ich jetzt? Die main.cf wegwerfen und neu
anfangen? Was genau macht die canonical? Was ist der Unterschied zur
sender_canonical? Das habe ich auch nicht so wirklich verstanden..
Achja, cyrus verwende ich nicht.
Vielen Dank für eure Antworten,
Gruß,
Axel