a7ex
05.09.08, 21:37
Hallo Geduldige,
jetzt habe ich mich endlich "getraut" einen mailserver auf meinem debian system aufzusetzen.
nach einer anleitung, die ich im netz gefunden habe, weil ich zugegebenermassen wirklich noch sehr, sehr wenig ahnung vom betreiben eines mailservers habe, wie ihr im folgenden schnell erkennen werdet.
aber ich brauche nun mal email ;-) und will, wenn ich schon einen internet server habe nicht nur deswegen einem anderen provider geld bezahlen, um seinen mailserver zu benutzen.
blablabla...
ich habe mich dafuer entschieden postfix und cyrus, Postgrey, ClamAV und SpamAssassin mit einer mysql datenbank zu benutzen.
Jetzt habe ich brav domains und accounts ueber webcyradmin anglegt und alles sieht so aus als koennte es funktionieren...
...aber jede mail wird auf den hauptaccount geschickt. bisher wars mir egal, sogar ganz recht :-) aber wenn man nun mehrere verschiedene leute bedienen will, dann ist das natuerlich nur 1b ;-)
Wer auch immer den nerv dazu hat mir zu helfen, bitte sag, welche infos Du brauchst um mir einen guten rat zu geben, bevor ich hier alles zuspamme mit logs und conf dateien, die nicht weiterhelfen.
aus meinem mail log sind hier die zeilen, die ich seltsam finde und von denen ich glaube, dass sie meinem problem nahe sind. hier soll eine mail an lino@da-franca.com geschickt werden, wird aber stattdessen an alex.mail.farbflash.org@mail.farbflash.org geschickt. (dies ist ein test, den ich ueber telnet vom selben server geschickt habe) mir scheint dass dort wo "cyrus/lmtpunix[4866]: WARNING" steht moeglicherweise das problem ist??
Sep 5 20:36:47 ffs postfix/smtp[4861]: 967BD1CF51FE: to=<lino@da-franca.com>, relay=127.0.0.1[127.0.0.1]:10026, delay=0.16, delays=0.02/0.03/0.1/0.01, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as B9E661CF51FB)
Sep 5 20:36:47 ffs postfix/smtpd[4862]: disconnect from localhost[127.0.0.1]
Sep 5 20:36:47 ffs postfix/qmgr[3177]: 967BD1CF51FE: removed
Sep 5 20:36:47 ffs cyrus/master[4866]: about to exec /usr/lib/cyrus/bin/lmtpd
Sep 5 20:36:47 ffs cyrus/lmtpunix[4866]: executed
Sep 5 20:36:47 ffs cyrus/lmtpunix[4866]: accepted connection
Sep 5 20:36:47 ffs cyrus/lmtpunix[4866]: lmtp connection preauth'd as postman
Sep 5 20:36:47 ffs cyrus/lmtpunix[4866]: WARNING: sieve script /var/spool/sieve/a/alex^mail^meinServer^org/defaultbc doesn't exist: No such file or directory
Sep 5 20:36:47 ffs cyrus/lmtpunix[4866]: duplicate_check: <20080905183621.0F6601CF51FB@mail.meinServer.org> user.alex^mail^meinServer^org 0
Sep 5 20:36:47 ffs cyrus/lmtpunix[4866]: duplicate_check: <20080905183621.0F6601CF51FB@mail.meinServer.org> user.alex^mail^meinServer^org 0
Sep 5 20:36:47 ffs cyrus/lmtpunix[4866]: mystore: starting txn 2147483812
Sep 5 20:36:47 ffs cyrus/lmtpunix[4866]: mystore: committing txn 2147483812
Sep 5 20:36:47 ffs cyrus/lmtpunix[4866]: duplicate_mark: <20080905183621.0F6601CF51FB@mail.meinServer.org> user.alex^mail^meinServer^org 1220639807 134539131
Sep 5 20:36:47 ffs cyrus/lmtpunix[4866]: Delivered: <20080905183621.0F6601CF51FB@mail.meinServer.org> to mailbox: user.alex^mail^meinServer^org
Sep 5 20:36:47 ffs postfix/pipe[4864]: B9E661CF51FB: to=<alex.mail.meinServer.org@mail.meinServer.org>, orig_to=<lino@da-franca.com>, relay=cyrus, delay=0.08, delays=0.01/0.02/0/0.06, dsn=2.0.0, status=sent (delivered via cyrus service)
und hier noch postconfig -n, was ja auch recht hilfreich sein koennte:
postconf -n
alias_database = hash:/etc/aliases
alias_maps = $alias_database
append_dot_mydomain = no
biff = no
broken_sasl_auth_clients = yes
config_directory = /etc/postfix
content_filter = scan:127.0.0.1:10026
disable_vrfy_command = yes
inet_interfaces = all
mail_name = mail.meinServer.org
mailbox_size_limit = 0
mailbox_transport = cyrus
mydestination = meinServer.org, ffs.meinServer.org, mail.meinServer.org, localhost.meinServer.org, localhost, mysql:/etc/postfix/mysql-mydestination.cf
mydomain = meinServer.org
myhostname = mail.meinServer.org
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
myorigin = /etc/mailname
readme_directory = no
receive_override_options = no_address_mappings
recipient_delimiter = +
relayhost =
sender_canonical_maps = mysql:/etc/postfix/mysql-canonical.cf
smtp_host_lookup = native,dns
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtp_use_tls = yes
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
smtpd_data_restrictions = reject_unauth_pipelining, permit
smtpd_delay_reject = yes
smtpd_helo_required = yes
smtpd_recipient_restrictions = reject_invalid_hostname, reject_non_fqdn_hostname, reject_non_fqdn_sender, reject_non_fqdn_recipient, reject_unknown_sender_domain, reject_unknown_recipient_domain, reject_unauth_pipelining, permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination, reject_rbl_client zen.spamhaus.org, reject_rbl_client bl.spamcop.net, reject_rbl_client list.dsbl.org, reject_rbl_client sbl-xbl.spamhaus.org, reject_rbl_client whois.rfc-ignorant.org, reject_rbl_client ix.dnsbl.manitu.org, reject_rbl_client multihop.dsbl.org, reject_rbl_client dnsbl.ahbl.org, reject_rbl_client rhsbl.ahbl.org, permit
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
smtpd_sasl_security_options = noanonymous
smtpd_sender_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_non_fqdn_sender, reject_unknown_sender_domain, permit
smtpd_tls_CAfile = /etc/ssl/certs/smtps.pem
smtpd_tls_cert_file = /etc/ssl/certs/smtps.pem
smtpd_tls_key_file = /etc/ssl/certs/smtps.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtpd_tls_session_cache_timeout = 3600s
smtpd_use_tls = yes
strict_rfc821_envelopes = yes
tls_random_source = dev:/dev/urandom
virtual_alias_maps = mysql:/etc/postfix/mysql-virtual.cf
Vielen Dank im voraus
jetzt habe ich mich endlich "getraut" einen mailserver auf meinem debian system aufzusetzen.
nach einer anleitung, die ich im netz gefunden habe, weil ich zugegebenermassen wirklich noch sehr, sehr wenig ahnung vom betreiben eines mailservers habe, wie ihr im folgenden schnell erkennen werdet.
aber ich brauche nun mal email ;-) und will, wenn ich schon einen internet server habe nicht nur deswegen einem anderen provider geld bezahlen, um seinen mailserver zu benutzen.
blablabla...
ich habe mich dafuer entschieden postfix und cyrus, Postgrey, ClamAV und SpamAssassin mit einer mysql datenbank zu benutzen.
Jetzt habe ich brav domains und accounts ueber webcyradmin anglegt und alles sieht so aus als koennte es funktionieren...
...aber jede mail wird auf den hauptaccount geschickt. bisher wars mir egal, sogar ganz recht :-) aber wenn man nun mehrere verschiedene leute bedienen will, dann ist das natuerlich nur 1b ;-)
Wer auch immer den nerv dazu hat mir zu helfen, bitte sag, welche infos Du brauchst um mir einen guten rat zu geben, bevor ich hier alles zuspamme mit logs und conf dateien, die nicht weiterhelfen.
aus meinem mail log sind hier die zeilen, die ich seltsam finde und von denen ich glaube, dass sie meinem problem nahe sind. hier soll eine mail an lino@da-franca.com geschickt werden, wird aber stattdessen an alex.mail.farbflash.org@mail.farbflash.org geschickt. (dies ist ein test, den ich ueber telnet vom selben server geschickt habe) mir scheint dass dort wo "cyrus/lmtpunix[4866]: WARNING" steht moeglicherweise das problem ist??
Sep 5 20:36:47 ffs postfix/smtp[4861]: 967BD1CF51FE: to=<lino@da-franca.com>, relay=127.0.0.1[127.0.0.1]:10026, delay=0.16, delays=0.02/0.03/0.1/0.01, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as B9E661CF51FB)
Sep 5 20:36:47 ffs postfix/smtpd[4862]: disconnect from localhost[127.0.0.1]
Sep 5 20:36:47 ffs postfix/qmgr[3177]: 967BD1CF51FE: removed
Sep 5 20:36:47 ffs cyrus/master[4866]: about to exec /usr/lib/cyrus/bin/lmtpd
Sep 5 20:36:47 ffs cyrus/lmtpunix[4866]: executed
Sep 5 20:36:47 ffs cyrus/lmtpunix[4866]: accepted connection
Sep 5 20:36:47 ffs cyrus/lmtpunix[4866]: lmtp connection preauth'd as postman
Sep 5 20:36:47 ffs cyrus/lmtpunix[4866]: WARNING: sieve script /var/spool/sieve/a/alex^mail^meinServer^org/defaultbc doesn't exist: No such file or directory
Sep 5 20:36:47 ffs cyrus/lmtpunix[4866]: duplicate_check: <20080905183621.0F6601CF51FB@mail.meinServer.org> user.alex^mail^meinServer^org 0
Sep 5 20:36:47 ffs cyrus/lmtpunix[4866]: duplicate_check: <20080905183621.0F6601CF51FB@mail.meinServer.org> user.alex^mail^meinServer^org 0
Sep 5 20:36:47 ffs cyrus/lmtpunix[4866]: mystore: starting txn 2147483812
Sep 5 20:36:47 ffs cyrus/lmtpunix[4866]: mystore: committing txn 2147483812
Sep 5 20:36:47 ffs cyrus/lmtpunix[4866]: duplicate_mark: <20080905183621.0F6601CF51FB@mail.meinServer.org> user.alex^mail^meinServer^org 1220639807 134539131
Sep 5 20:36:47 ffs cyrus/lmtpunix[4866]: Delivered: <20080905183621.0F6601CF51FB@mail.meinServer.org> to mailbox: user.alex^mail^meinServer^org
Sep 5 20:36:47 ffs postfix/pipe[4864]: B9E661CF51FB: to=<alex.mail.meinServer.org@mail.meinServer.org>, orig_to=<lino@da-franca.com>, relay=cyrus, delay=0.08, delays=0.01/0.02/0/0.06, dsn=2.0.0, status=sent (delivered via cyrus service)
und hier noch postconfig -n, was ja auch recht hilfreich sein koennte:
postconf -n
alias_database = hash:/etc/aliases
alias_maps = $alias_database
append_dot_mydomain = no
biff = no
broken_sasl_auth_clients = yes
config_directory = /etc/postfix
content_filter = scan:127.0.0.1:10026
disable_vrfy_command = yes
inet_interfaces = all
mail_name = mail.meinServer.org
mailbox_size_limit = 0
mailbox_transport = cyrus
mydestination = meinServer.org, ffs.meinServer.org, mail.meinServer.org, localhost.meinServer.org, localhost, mysql:/etc/postfix/mysql-mydestination.cf
mydomain = meinServer.org
myhostname = mail.meinServer.org
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
myorigin = /etc/mailname
readme_directory = no
receive_override_options = no_address_mappings
recipient_delimiter = +
relayhost =
sender_canonical_maps = mysql:/etc/postfix/mysql-canonical.cf
smtp_host_lookup = native,dns
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtp_use_tls = yes
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
smtpd_data_restrictions = reject_unauth_pipelining, permit
smtpd_delay_reject = yes
smtpd_helo_required = yes
smtpd_recipient_restrictions = reject_invalid_hostname, reject_non_fqdn_hostname, reject_non_fqdn_sender, reject_non_fqdn_recipient, reject_unknown_sender_domain, reject_unknown_recipient_domain, reject_unauth_pipelining, permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination, reject_rbl_client zen.spamhaus.org, reject_rbl_client bl.spamcop.net, reject_rbl_client list.dsbl.org, reject_rbl_client sbl-xbl.spamhaus.org, reject_rbl_client whois.rfc-ignorant.org, reject_rbl_client ix.dnsbl.manitu.org, reject_rbl_client multihop.dsbl.org, reject_rbl_client dnsbl.ahbl.org, reject_rbl_client rhsbl.ahbl.org, permit
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
smtpd_sasl_security_options = noanonymous
smtpd_sender_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_non_fqdn_sender, reject_unknown_sender_domain, permit
smtpd_tls_CAfile = /etc/ssl/certs/smtps.pem
smtpd_tls_cert_file = /etc/ssl/certs/smtps.pem
smtpd_tls_key_file = /etc/ssl/certs/smtps.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtpd_tls_session_cache_timeout = 3600s
smtpd_use_tls = yes
strict_rfc821_envelopes = yes
tls_random_source = dev:/dev/urandom
virtual_alias_maps = mysql:/etc/postfix/mysql-virtual.cf
Vielen Dank im voraus