Hallo,
ich hab folgendes Tut durchgearbeitet: [HOWTO] Debian 6.x System Konfiguration & Absicherung (LEMP, E-Mail, FTP, OpenPanel, DDoS, Spam, uvm.)
So nun zu den Fakten:
Mail geht nicht.
hostname -f
meinedomain.com
vim /etc/hosts
127.0.0.1 localhost
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
37.221.193.166 meinedomain.com meinedomain
Alles anzeigen
vim /etc/resolv.conf
domain yourvserver.net
search yourvserver.net
nameserver 46.38.225.225
nameserver 78.47.47.47
nameserver 46.38.252.252
~
Ich habe jetzt den Host geändert auf meinedomain.com statt v2xxxx.yourserver.net
Auszug aus dem Mail.log:
Mar 27 17:52:10 v2xxxxxxxxxxx postfix/master[11168]: daemon started -- version 2.7.1, configuration /etc/postfix
Mar 27 17:52:37 v2xxxxxxxxxxx authdaemond: modules="authpam", daemons=5
Mar 27 17:52:37 v2xxxxxxxxxxx authdaemond: Installing libauthpam
Mar 27 17:52:37 v2xxxxxxxxxxx authdaemond: Installation complete: authpam
Mar 27 17:53:08 v2xxxxxxxxxxx authdaemond: stopping authdaemond children
Mar 27 17:53:08 v2xxxxxxxxxxx authdaemond: modules="authuserdb", daemons=5
Mar 27 17:53:08 v2xxxxxxxxxxx authdaemond: Installing libauthuserdb
Mar 27 17:53:08 v2xxxxxxxxxxx authdaemond: Installation complete: authuserdb
Mar 27 17:53:10 v2xxxxxxxxxxx postfix/master[11168]: reload -- version 2.7.1, configuration /etc/postfix
Mar 27 17:53:10 v2xxxxxxxxxxx postfix/master[11168]: warning: ignoring inet_protocols parameter value change
Mar 27 17:53:10 v2xxxxxxxxxxx postfix/master[11168]: warning: old value: "ipv4", new value: "all"
Mar 27 17:53:10 v2xxxxxxxxxxx postfix/master[11168]: warning: to change inet_protocols, stop and start Postfix
Mar 27 17:55:28 v2xxxxxxxxxxx postfix/smtpd[17468]: connect from mail-ve0-f172.google.com[209.85.128.172]
Mar 27 17:55:29 v2xxxxxxxxxxx postfix/smtpd[17468]: warning: support for restriction "check_relay_domains" will be removed from Postfix; use "reject_unauth_destination" instead
Mar 27 17:55:29 v2xxxxxxxxxxx postfix/smtpd[17468]: warning: restriction `reject_unauth_destination' after `check_relay_domains' is ignored
Mar 27 17:55:29 v2xxxxxxxxxxx postfix/smtpd[17468]: 35DB617FF02: client=mail-ve0-f172.google.com[209.85.128.172]
Mar 27 17:55:29 v2xxxxxxxxxxx postfix/cleanup[17473]: 35DB617FF02: message-id=<CAAmEpKDAHLXpCxXrQ18MtGxGU+ghzB-7zZkbQXDLyj0iXS8jSg@mail.gmail.com>
Mar 27 17:55:29 v2xxxxxxxxxxx postfix/qmgr[12234]: table hash:/etc/postfix/openpanel/transport_map(0,lock|fold_fix) has changed -- restarting
Mar 27 17:55:29 v2xxxxxxxxxxx postfix/qmgr[17474]: 35DB617FF02: from=<************@gmail.com>, size=1876, nrcpt=1 (queue active)
Mar 27 17:55:29 v2xxxxxxxxxxx postfix/smtpd[17468]: disconnect from mail-ve0-f172.google.com[209.85.128.172]
Mar 27 17:55:29 v2xxxxxxxxxxx postfix/smtp[17475]: 35DB617FF02: to=<******.******@t-online.de>, orig_to=<test@v2xxxxxxxxxxx.yourvserver.net>, relay=mx01.t-online.de[194.25.134.72]:25, delay=0.49, delays=0.34/0.01/0.08/0.06, dsn=2.0.0, status=sent (250 2.0.0 Message accepted.)
Mar 27 17:55:29 v2xxxxxxxxxxx postfix/qmgr[17474]: 35DB617FF02: removed
Mar 27 17:58:49 v2xxxxxxxxxxx postfix/anvil[17471]: statistics: max connection rate 1/60s for (smtp:209.85.128.172) at Mar 27 17:55:28
Mar 27 17:58:49 v2xxxxxxxxxxx postfix/anvil[17471]: statistics: max connection count 1 for (smtp:209.85.128.172) at Mar 27 17:55:28
Mar 27 17:58:49 v2xxxxxxxxxxx postfix/anvil[17471]: statistics: max cache size 1 at Mar 27 17:55:28
Alles anzeigen
Postfix main.cnf
# See /usr/share/postfix/main.cf.dist for a commented, more complete version
# Debian specific: Specifying a file name will cause the first
# line of that file to be used as the name. The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no
# appending .domain is the MUA's job.
append_dot_mydomain = no
# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h
readme_directory = no
# TLS parameters
smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.
myhostname = meinedomain.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = localmail.meinedomain.com
relayhost =
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = all
maildrop_destination_recipient_limit = 1
virtual_transport = maildrop
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, check_relay_domains, reject_unauth_destination
virtual_mailbox_domains = $virtual_mailbox_maps, hash:/etc/postfix/openpanel/virtual_mailbox_domains
virtual_mailbox_maps = hash:/etc/postfix/openpanel/virtual_mailbox
virtual_alias_maps = $virtual_maps, hash:/etc/postfix/openpanel/virtual_alias
transport_maps = hash:/etc/postfix/openpanel/transport_map
relay_domains = $mydestination, hash:/etc/postfix/openpanel/transport_map
Alles anzeigen
Problem im OpenPanel.
Füge ich jetzt meinedomain.com hinzu sieht das wie folgt aus:
meinedomain.com.v2xxxxx.yourserver.net
Weiß jemand weiter?
edit:
Letzteres geht doch... führt aber auch nicht zu dem richtigen Ergebnis.
mail.log
Mar 27 18:29:30 meinedomain postfix/master[1731]: daemon started -- version 2.7.1, configuration /etc/postfix
Mar 27 18:33:05 meinedomain postfix/smtpd[2339]: connect from mail-vb0-f44.google.com[209.85.212.44]
Mar 27 18:33:06 meinedomain postfix/smtpd[2339]: warning: support for restriction "check_relay_domains" will be removed from Postfix; use "reject_unauth_destination" instead
Mar 27 18:33:06 meinedomain postfix/smtpd[2339]: warning: restriction `reject_unauth_destination' after `check_relay_domains' is ignored
Mar 27 18:33:06 meinedomain postfix/smtpd[2339]: 4BFE817FF2D: client=mail-vb0-f44.google.com[209.85.212.44]
Mar 27 18:33:06 meinedomain postfix/cleanup[2344]: 4BFE817FF2D: message-id=<CAAmEpKBPTOLx1aN-7Hp+D-yDNG0B2K_kR+=C2WWyd+WBD=pimg@mail.gmail.com>
Mar 27 18:33:06 meinedomain postfix/qmgr[1739]: table hash:/etc/postfix/openpanel/transport_map(0,lock|fold_fix) has changed -- restarting
Mar 27 18:33:06 meinedomain postfix/qmgr[2345]: 4BFE817FF2D: from=<******@gmail.com>, size=1778, nrcpt=1 (queue active)
Mar 27 18:33:06 meinedomain postfix/smtp[2346]: connect to gmail-smtp-in.l.google.com[2a00:1450:4008:c01::1a]:25: Network is unreachable
Mar 27 18:33:06 meinedomain postfix/smtpd[2339]: disconnect from mail-vb0-f44.google.com[209.85.212.44]
Mar 27 18:33:07 meinedomain postfix/smtp[2346]: 4BFE817FF2D: to=<******@gmail.com>, orig_to=<admin@meinedomain.com>, relay=gmail-smtp-in.l.google.com[173.194.69.27]:25, delay=0.96, delays=0.36/0.03/0.12/0.45, dsn=2.0.0, status=sent (250 2.0.0 OK 1364405586 hw19si7511108bkc.158 - gsmtp)
Mar 27 18:33:07 meinedomain postfix/qmgr[2345]: 4BFE817FF2D: removed
Alles anzeigen
edit2:
Anmerkung:
Unter var/vmail/v2xxxx war ein Eintrag von eine Mail vorhanden!
Jetzt unter var/vmail/meinedomain.com war die Mailbox da, aber keine Mail drin!
bei v2xxx.your.net ging das schon Mal.
edit3:
Ich hab ein Forwarding auf xy@gmail.com drin.
Sende ich von meiner gmail-Adresse aus an xy@meinedomain.com kommt nichts an.
Nehme ich z.B. eine t-online.de kommt diese wenigstens bei der gmail.com an....
Aber antworten kann ich von gmail aus nicht.
Was stimmt da nur nicht...