sm0ker
27.08.06, 14:40
ich versuche hier gerade einen mail server auf meine router aufzusetzen. er soll:
-mail abholen bei gmx und freenet
-spam/junk filtern
-virus scan
-post im lan zustellen (thunderbird/outlook clients)
-post auf dem router lokal zustellen
-post aus dem lan anehmen und wenn er den empfaenger im "lan" nicht findet bei gmx bzw. freenet abliefern
nun gehen meine probleme aber schon mit postfix los! ich habe ihn soweit konfiguriert bekommen, dass er mail bei gmx abliefert. genau da liegt aber mein erstes problem. ich habe auf dem router einen user sm0ker, wenn ich diesem user nun lokal mail schicken will, also aus einem anderen account auf der gleichen maschiene, versucht postfix diese mail bei gmx abzuliefern, welche der aber zurueckweist, weil meine domain im lan "home.lan" ist. ist mir klar! aber wieso stellt er sie nicht lokal zu?
/etc/postfix/main.cf
#soft_bounce = no
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
mail_owner = postfix
default_privs = nobody
myhostname = hero.home.lan
mydomain = home.lan
inet_interfaces = all
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
unknown_local_recipient_reject_code = 550
mynetworks_style = class
mynetworks = 192.168.1.0/28, 127.0.0.0/8
relayhost = mail.gmx.net
alias_maps = hash:/etc/postfix/aliases
debug_peer_level = 2
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
newaliases_path = /usr/bin/newaliases
mailq_path = /usr/bin/mailq
setgid_group = postdrop
html_directory = no
manpage_directory = /usr/share/man
sample_directory = /etc/postfix
readme_directory = no
smtp_sasl_auth_enable = yes
smtp_sasl_security_options = noanonymous
smtp_sasl_password_maps = hash:/etc/postfix/sasl_password
biff = no
canonical_maps = hash:/etc/postfix/canonical
sender_canonical_maps = hash:/etc/postfix/sender_canonical
masquerade_exceptions = root
masquerade_classes = envelope_sender, header_sender, header_recipient
masquerade_domains =
defer_transports =
disable_dns_lookups = no
smtpd_sender_restrictions = hash:/etc/postfix/access
smtpd_client_restrictions =
smtpd_helo_required = no
smtpd_helo_restrictions =
smtpd_recipient_restrictions = permit_mynetworks,reject_unauth_destination
smtp_sasl_auth_enable = yes
smtpd_sasl_auth_enable = no
smtpd_use_tls = no
smtp_use_tls = no
smtp_sasl_security_options =
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
recipient_delimiter = +
strict_rfc821_envelopes = no
/etc/postfix/canonical
sm0ker@hero.home.lan the_thief@gmx.net
/etc/postfix/sender_canonical
sm0ker@hero.home.lan the_thief@gmx.net
/etc/postfix/sasl_passwd
mail.gmx.net the_thief@gmx.net:mein_pass ;-)
tail -f /var/log/mail.log <=- wenn eine mail an den user sm0ker gesendert werden soll!
Aug 27 15:35:33 hero postfix/smtpd[23647]: connect from localhost[127.0.0.1]
Aug 27 15:35:33 hero postfix/smtpd[23647]: 7C1E62B8FE: client=localhost[127.0.0.1]
Aug 27 15:35:33 hero postfix/smtpd[23647]: disconnect from localhost[127.0.0.1]
Aug 27 15:35:33 hero postfix/pickup[23206]: 88D232B900: uid=1001 from=<tester@hero.home.lan>
Aug 27 15:35:33 hero postfix/cleanup[23649]: 88D232B900: message-id=<Pine.LNX.4.64.0608271535220.23646@hero.home.lan>
Aug 27 15:35:33 hero postfix/qmgr[23207]: 88D232B900: from=<tester@hero.home.lan>, size=525, nrcpt=1 (queue active)
Aug 27 15:35:35 hero postfix/smtp[23651]: 88D232B900: to=<the_thief@gmx.net>, orig_to=<sm0ker@hero.home.lan>, relay=mail.gmx.net[213.165.64.20]:25, delay=2.4, delays=0.09/0.03/2.3/0.04, dsn=5.1.8, status=bounced (host mail.gmx.net[213.165.64.20] said: 550 5.1.8 Cannot resolve your domain {mp042} (in reply to MAIL FROM command))
Aug 27 15:35:35 hero postfix/cleanup[23649]: F13B32B902: message-id=<20060827133535.F13B32B902@hero.home.lan>
Aug 27 15:35:36 hero postfix/qmgr[23207]: F13B32B902: from=<>, size=2424, nrcpt=1 (queue active)
Aug 27 15:35:36 hero postfix/bounce[23652]: 88D232B900: sender non-delivery notification: F13B32B902
Aug 27 15:35:36 hero postfix/qmgr[23207]: 88D232B900: removed
Aug 27 15:35:36 hero postfix/local[23653]: F13B32B902: to=<tester@hero.home.lan>, relay=local, delay=0.05, delays=0.01/0.03/0/0.01, dsn=2.0.0, status=sent (delivered to mailbox)
Aug 27 15:35:36 hero postfix/qmgr[23207]: F13B32B902: removed
postfix version: 2.3.3
linux version: 2.6.16.26
cyrus sasl version: 2.1.21
kann mir wer einen tip geben, oder ein gutes tut? die im forum hier habe ich mir alles schon angesehen, haben mich aber nicht wirklich weitergebracht...
-mail abholen bei gmx und freenet
-spam/junk filtern
-virus scan
-post im lan zustellen (thunderbird/outlook clients)
-post auf dem router lokal zustellen
-post aus dem lan anehmen und wenn er den empfaenger im "lan" nicht findet bei gmx bzw. freenet abliefern
nun gehen meine probleme aber schon mit postfix los! ich habe ihn soweit konfiguriert bekommen, dass er mail bei gmx abliefert. genau da liegt aber mein erstes problem. ich habe auf dem router einen user sm0ker, wenn ich diesem user nun lokal mail schicken will, also aus einem anderen account auf der gleichen maschiene, versucht postfix diese mail bei gmx abzuliefern, welche der aber zurueckweist, weil meine domain im lan "home.lan" ist. ist mir klar! aber wieso stellt er sie nicht lokal zu?
/etc/postfix/main.cf
#soft_bounce = no
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
mail_owner = postfix
default_privs = nobody
myhostname = hero.home.lan
mydomain = home.lan
inet_interfaces = all
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
unknown_local_recipient_reject_code = 550
mynetworks_style = class
mynetworks = 192.168.1.0/28, 127.0.0.0/8
relayhost = mail.gmx.net
alias_maps = hash:/etc/postfix/aliases
debug_peer_level = 2
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
newaliases_path = /usr/bin/newaliases
mailq_path = /usr/bin/mailq
setgid_group = postdrop
html_directory = no
manpage_directory = /usr/share/man
sample_directory = /etc/postfix
readme_directory = no
smtp_sasl_auth_enable = yes
smtp_sasl_security_options = noanonymous
smtp_sasl_password_maps = hash:/etc/postfix/sasl_password
biff = no
canonical_maps = hash:/etc/postfix/canonical
sender_canonical_maps = hash:/etc/postfix/sender_canonical
masquerade_exceptions = root
masquerade_classes = envelope_sender, header_sender, header_recipient
masquerade_domains =
defer_transports =
disable_dns_lookups = no
smtpd_sender_restrictions = hash:/etc/postfix/access
smtpd_client_restrictions =
smtpd_helo_required = no
smtpd_helo_restrictions =
smtpd_recipient_restrictions = permit_mynetworks,reject_unauth_destination
smtp_sasl_auth_enable = yes
smtpd_sasl_auth_enable = no
smtpd_use_tls = no
smtp_use_tls = no
smtp_sasl_security_options =
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
recipient_delimiter = +
strict_rfc821_envelopes = no
/etc/postfix/canonical
sm0ker@hero.home.lan the_thief@gmx.net
/etc/postfix/sender_canonical
sm0ker@hero.home.lan the_thief@gmx.net
/etc/postfix/sasl_passwd
mail.gmx.net the_thief@gmx.net:mein_pass ;-)
tail -f /var/log/mail.log <=- wenn eine mail an den user sm0ker gesendert werden soll!
Aug 27 15:35:33 hero postfix/smtpd[23647]: connect from localhost[127.0.0.1]
Aug 27 15:35:33 hero postfix/smtpd[23647]: 7C1E62B8FE: client=localhost[127.0.0.1]
Aug 27 15:35:33 hero postfix/smtpd[23647]: disconnect from localhost[127.0.0.1]
Aug 27 15:35:33 hero postfix/pickup[23206]: 88D232B900: uid=1001 from=<tester@hero.home.lan>
Aug 27 15:35:33 hero postfix/cleanup[23649]: 88D232B900: message-id=<Pine.LNX.4.64.0608271535220.23646@hero.home.lan>
Aug 27 15:35:33 hero postfix/qmgr[23207]: 88D232B900: from=<tester@hero.home.lan>, size=525, nrcpt=1 (queue active)
Aug 27 15:35:35 hero postfix/smtp[23651]: 88D232B900: to=<the_thief@gmx.net>, orig_to=<sm0ker@hero.home.lan>, relay=mail.gmx.net[213.165.64.20]:25, delay=2.4, delays=0.09/0.03/2.3/0.04, dsn=5.1.8, status=bounced (host mail.gmx.net[213.165.64.20] said: 550 5.1.8 Cannot resolve your domain {mp042} (in reply to MAIL FROM command))
Aug 27 15:35:35 hero postfix/cleanup[23649]: F13B32B902: message-id=<20060827133535.F13B32B902@hero.home.lan>
Aug 27 15:35:36 hero postfix/qmgr[23207]: F13B32B902: from=<>, size=2424, nrcpt=1 (queue active)
Aug 27 15:35:36 hero postfix/bounce[23652]: 88D232B900: sender non-delivery notification: F13B32B902
Aug 27 15:35:36 hero postfix/qmgr[23207]: 88D232B900: removed
Aug 27 15:35:36 hero postfix/local[23653]: F13B32B902: to=<tester@hero.home.lan>, relay=local, delay=0.05, delays=0.01/0.03/0/0.01, dsn=2.0.0, status=sent (delivered to mailbox)
Aug 27 15:35:36 hero postfix/qmgr[23207]: F13B32B902: removed
postfix version: 2.3.3
linux version: 2.6.16.26
cyrus sasl version: 2.1.21
kann mir wer einen tip geben, oder ein gutes tut? die im forum hier habe ich mir alles schon angesehen, haben mich aber nicht wirklich weitergebracht...