Twinhand
(Themenstarter)
Anmeldungsdatum: 5. März 2014
Beiträge: 195
|
postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases,
append_dot_mydomain = no
biff = no
config_directory = /etc/postfix
html_directory = /usr/share/doc/postfix/html
inet_interfaces = all
local_recipient_maps =
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
mailman_destination_recipient_limit = 1
message_size_limit = 20480000
mydestination = a bunch of destinations, localhost
myhostname = mattiswald
mynetworks = 127.0.0.0/8 192.168.1.0/24 192.168.11.0/24 10.156.123.0/24 13.83.165.130/32 192.168.5.0/24
readme_directory = /usr/share/doc/postfix
recipient_delimiter = +
relay_domains = lists.domain.de
relayhost =
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
smtpd_recipient_restrictions = permit_mynetworks check_recipient_access hash:/etc/postifx/blocked_from_extern permit_sasl_authenticated reject_unauth_destination
smtpd_tls_cert_file = /etc/ssl/cert/ssl-cert-snakeoil.pem
smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtpd_use_tls = yes
transport_maps = hash:/etc/postfix/transport
unknown_local_recipient_reject_code = 550
virtual_maps = hash:/var/lib/mailman/data/aliases
Mail-Log Eintrag zur Mail
Apr 8 09:28:11 mattiswald postfix/cleanup[30778]: C4CAF100067: message-id=<20140408072757.C4CAF100067@mattiswald>
Apr 8 09:28:11 mattiswald postfix/qmgr[30581]: C4CAF100067: from=<testuser@domain.de>, size=387, nrcpt=1 (queue active)
Apr 8 09:28:11 mattiswald postfix/local[30779]: C4CAF100067: to=<|/var/lib/mailman/mail/mailman post testmailmanlist3@mattiswald>, orig_to=<testmailmanlist3@domain.de>, relay=local, delay=28, delays=28/0/0/0.01, dsn=5.1.1, status=bounced (unknown u$
Apr 8 09:28:11 mattiswald postfix/cleanup[30778]: AD7BC10006C: message-id=<20140408072811.AD7BC10006C@mattiswald>
Apr 8 09:28:11 mattiswald postfix/qmgr[30581]: AD7BC10006C: from=<>, size=2468, nrcpt=1 (queue active)
Apr 8 09:28:11 mattiswald postfix/bounce[30780]: C4CAF100067: sender non-delivery notification: AD7BC10006C
Apr 8 09:28:11 mattiswald postfix/qmgr[30581]: C4CAF100067: removed
Apr 8 09:28:11 mattiswald postfix/local[30779]: AD7BC10006C: to=<testuser@domain.de>, relay=local, delay=0.01, delays=0/0/0/0.01, dsn=2.0.0, status=sent (delivered to command: procmail -a "$EXTENSION")
Apr 8 09:28:11 mattiswald postfix/qmgr[30581]: AD7BC10006C: removed
MfG
Twinhand
|
xabbuh
Anmeldungsdatum: 25. Mai 2006
Beiträge: 6411
|
Das ist ja auch genau falsch herum. Die Datei muss in alias_maps und nicht in virtual_maps aufgeführt werden.
|
Twinhand
(Themenstarter)
Anmeldungsdatum: 5. März 2014
Beiträge: 195
|
Wo genau liest du das denn ab? Und wie ändere ich das?
|
xabbuh
Anmeldungsdatum: 25. Mai 2006
Beiträge: 6411
|
Twinhand schrieb: Wo genau liest du das denn ab?
Guck Dir doch einfach mal Deine Ausgabe von postconf -n an.
Und wie ändere ich das?
In der main.cf.
|
Twinhand
(Themenstarter)
Anmeldungsdatum: 5. März 2014
Beiträge: 195
|
Ich habe es entfernt und es scheint so weit zu funktionieren. Danke soweit ☺. Warum genau funktioniert das? Und ich habe eine kleines Problem mit Mailman selbst. Und zwar möchte Mailman eine Bestätigung, dass besagte Testmail an die Liste geschickt werden darf. So weit so gut, Mailman ist eingerichtet auf dem Port 8080 zu laufen. Wenn ich die Mail bestätigen will versucht Mailman die Sache auf Port 80 auszuführen (was logischerweise nicht klappt). Ich habe aber in der /etc/mailman/mm_cfg.py entsprechende Anpassungen gemacht. -------------------------------------------------------------
# If you change these, you have to configure your http server
# accordingly (Alias and ScriptAlias directives in most httpds)
DEFAULT_URL_PATTERN = 'http://%s:8080/cgi-bin/mailman/'
PRIVATE_ARCHIVE_URL = '/cgi-bin/mailman/private'
IMAGE_LOGOS = '/images/mailman/'
#-------------------------------------------------------------
# Default domain for email addresses of newly created MLs
DEFAULT_EMAIL_HOST = 'domain.de'
#-------------------------------------------------------------
# Default host for web interface of newly created MLs
DEFAULT_URL_HOST = '192.168.5.10:8080'
#-------------------------------------------------------------
# Required when setting any of its arguments.
add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
#-------------------------------------------------------------
# The default language for this server.
DEFAULT_SERVER_LANGUAGE = 'en'
Im Anhang befinden sich Screenshots die das Problem zeigen. MfG
Twinhand
- Bilder
|
xabbuh
Anmeldungsdatum: 25. Mai 2006
Beiträge: 6411
|
Das ist jetzt ein anderes Problem. Mache dafür besser einen neuen Thread auf. Dann findet auch andere, die Dir helfen können, diese evtl. besser.
|
Twinhand
(Themenstarter)
Anmeldungsdatum: 5. März 2014
Beiträge: 195
|
Alles klar, danke dir. MfG
Twinhand
|
Twinhand
(Themenstarter)
Anmeldungsdatum: 5. März 2014
Beiträge: 195
|
Hi, leider muss ich den Thread wieder öffnen, weil sich doch irgendwie ein Fehler eingeschlichen hat. Wenn ich eine Mail an eine Mailman Liste schicke funktioniert es nicht.
Mein Maillog wirft folgenden Fehler aus. Apr 9 13:32:10 mattiswald postfix/cleanup[8333]: 1FFF3100067: message-id=<20140409113200.1FFF3100067@mattiswald>
Apr 9 13:32:10 mattiswald postfix/qmgr[2548]: 1FFF3100067: from=<testuser@domain.de>, size=381, nrcpt=1 (queue active)
Apr 9 13:32:10 mattiswald postfix/local[8334]: 1FFF3100067: to=<testmailmanlist3@domain.de>, relay=local, delay=27, delays=27/0/0/0.07, dsn=2.0.0, status=sent (delivered to command: /var/lib/mailman/mail/mailman post testmailmanlist3 )
Apr 9 13:32:10 mattiswald postfix/qmgr[2548]: 1FFF3100067: removed
Apr 9 13:32:11 mattiswald postfix/smtpd[8336]: warning: cannot get RSA certificate from file /etc/ssl/cert/ssl-cert-snakeoil.pem: disabling TLS support
Apr 9 13:32:11 mattiswald postfix/smtpd[8336]: warning: TLS library problem: 8336:error:02001002:system library:fopen:No such file or directory:bss_file.c:398:fopen('/etc/ssl/cert/ssl-cert-snakeoil.pem','r'):
Apr 9 13:32:11 mattiswald postfix/smtpd[8336]: warning: TLS library problem: 8336:error:20074002:BIO routines:FILE_CTRL:system lib:bss_file.c:400:
Apr 9 13:32:11 mattiswald postfix/smtpd[8336]: warning: TLS library problem: 8336:error:140DC002:SSL routines:SSL_CTX_use_certificate_chain_file:system lib:ssl_rsa.c:722:
Apr 9 13:32:11 mattiswald postfix/smtpd[8336]: connect from localhost[127.0.0.1]
Apr 9 13:32:11 mattiswald postfix/smtpd[8336]: warning: Illegal address syntax from localhost[127.0.0.1] in MAIL command: <testmailmanlist3-bounces@192.168.5.10>
Apr 9 13:32:11 mattiswald postfix/smtpd[8336]: disconnect from localhost[127.0.0.1]
Apr 9 13:32:11 mattiswald postfix/smtpd[8336]: connect from localhost[127.0.0.1]
Apr 9 13:32:11 mattiswald postfix/smtpd[8336]: warning: Illegal address syntax from localhost[127.0.0.1] in MAIL command: <testmailmanlist3-bounces@192.168.5.10>
Apr 9 13:32:11 mattiswald postfix/smtpd[8336]: disconnect from localhost[127.0.0.1]
Apr 9 13:32:12 mattiswald postfix/smtpd[8331]: disconnect from localhost[127.0.0.1] Die Datei exitiert aber und der angegebene Pfad stimmt auch. Ich habe versucht die Zertifikate neu zu erstellen. -rw-r--r-- 1 root root 1066 Apr 9 13:30 /etc/ssl/certs/ssl-cert-snakeoil.pem
sudo make-ssl-cert generate-default-snakeoil
und
sudo make-ssl-cert generate-default-snakeoil --force-overwrite Hatte aber keinen Effekt. Das einzige was ich gestern noch getan habe, ist folgendes
sudo withlist -l -r fix_url testmailmanlist3 --urlhost=192.168.5.10 Dieser Befehl fixt das Problem von Mailman, dass dieser auf die falschen Ports verlinkt. Ich hoffe jemand hat eine Ahnung, ich danke für eure Hilfe im voraus. MfG
Twinhand
|
Twinhand
(Themenstarter)
Anmeldungsdatum: 5. März 2014
Beiträge: 195
|
Das Problem mit den Zertifikaten, lies sich nur lösen, indem ich eine neues Zertifikat erstellt habe (eins mit einen anderem Namen).
Der SSL Fehler wird jetzt nichtmehr angezeigt, übertragen werden die Mail aber trotzdem noch nicht.
Hier die Fehlermeldung Apr 10 10:28:12 mattiswald postfix/cleanup[13302]: 4946E100067: message-id=<20140410082800.4946E100067@mattiswald>
Apr 10 10:28:12 mattiswald postfix/qmgr[13048]: 4946E100067: from=<testuser@domain.de>, size=378, nrcpt=1 (queue active)
Apr 10 10:28:12 mattiswald postfix/local[13303]: 4946E100067: to=<testmailmanlist3@domain.de>, relay=local, delay=26, delays=25/0.01/0/0.07, dsn=2.0.0, status=sent (delivered to command: /var/lib/mailman/mail/mailman post testmailmanlist3 )
Apr 10 10:28:12 mattiswald postfix/qmgr[13048]: 4946E100067: removed
Apr 10 10:28:13 mattiswald postfix/smtpd[13299]: disconnect from localhost[127.0.0.1]
Apr 10 10:28:14 mattiswald postfix/smtpd[13299]: connect from localhost[127.0.0.1]
Apr 10 10:28:14 mattiswald postfix/smtpd[13299]: warning: Illegal address syntax from localhost[127.0.0.1] in MAIL command: <testmailmanlist3-bounces@192.168.5.10>
Apr 10 10:28:14 mattiswald postfix/smtpd[13299]: disconnect from localhost[127.0.0.1]
Apr 10 10:28:14 mattiswald postfix/smtpd[13299]: connect from localhost[127.0.0.1]
Apr 10 10:28:14 mattiswald postfix/smtpd[13299]: warning: Illegal address syntax from localhost[127.0.0.1] in MAIL command: <testmailmanlist3-bounces@192.168.5.10>
Apr 10 10:28:14 mattiswald postfix/smtpd[13299]: disconnect from localhost[127.0.0.1]
Was bedeutet in diesem Fall illegale Adressen-Syntax , darf ich keine Zahl in einer Mail-Adresse haben? Ich hoffe jemand hat eine Idee. Ich danke schonmal im voraus für eure Hilfe. MfG
Twinhand
|
Twinhand
(Themenstarter)
Anmeldungsdatum: 5. März 2014
Beiträge: 195
|
Hallo zusammen, ich habe eine Lösung gefunden. Folgende Zeile muss in die main.cf eingetragen werden, damit es funktioniert. # Fix for the "illegal syntax" problem
resolve_numeric_domain = yes Damit wird diese Thread wieder geschlossen, danke für eure Hilfe. (Falls einer erläutern könnte, was diese Zeile genau macht, wäre das super.☺) MfG
Twinhand
|
xabbuh
Anmeldungsdatum: 25. Mai 2006
Beiträge: 6411
|
Wo kommt denn die generierte E-Mail-Adresse überhaupt her? Doch vermutlich von Mailman, oder nicht? Hast Du dort in der Konfiguration irgendwo statt Deines Hostnamens die IP-Adresse eingetragen?
|
Twinhand
(Themenstarter)
Anmeldungsdatum: 5. März 2014
Beiträge: 195
|
Ich verstehe die Frage nicht genau, welche generierte E-Mail-Adresse meinst du? Beide adressen müssten von Postfix kommen (zumindest der domain.de Teil) Und ja ich habe zu dieser Liste eine IP eingetragen (siehe Post von 9. April 2014 13:46 ) MfG
Twinhand Edit* Achso, resolve_numeric_domain. Soll dann betimmt bedeuten das er auch Posts von Zieladressen in IP-Form annehmen soll, richtig?
|
xabbuh
Anmeldungsdatum: 25. Mai 2006
Beiträge: 6411
|
Twinhand schrieb: Ich verstehe die Frage nicht genau, welche generierte E-Mail-Adresse meinst du?
Die in Deinem Log auftaucht. Du wirst ja kaum selber E-Mails an testmailmanlist3-bounces@192.168.5.10 senden. Was steht denn in /etc/mailman/mm_cfg.py für DEFAULT_EMAIL_HOST ?
|
Twinhand
(Themenstarter)
Anmeldungsdatum: 5. März 2014
Beiträge: 195
|
achso da steht in dem Beispiel "domain.de" Nein das "-bounces@192.168.5.10" habe ich so nirgens eingetragen, .
dass muss wohl Mailman oder Postfix irgendwie generieren.
Auschnitte aus der mm_cfg.py
#-------------------------------------------------------------
# If you change these, you have to configure your http server
# accordingly (Alias and ScriptAlias directives in most httpds)
DEFAULT_URL_PATTERN = 'http://%s:8080/cgi-bin/mailman/'
PRIVATE_ARCHIVE_URL = '/cgi-bin/mailman/private'
IMAGE_LOGOS = '/images/mailman/'
#-------------------------------------------------------------
# Default domain for email addresses of newly created MLs
DEFAULT_EMAIL_HOST = 'domain.de'
#-------------------------------------------------------------
# Default host for web interface of newly created MLs
DEFAULT_URL_HOST = '192.168.5.10:8080'
|
xabbuh
Anmeldungsdatum: 25. Mai 2006
Beiträge: 6411
|
Versuche mal den E-Mail-Host für die Liste zu korrigieren: sudo withlist -l -r fix_url $testmailmanlist3 --emailhost=domain.de
|