ubuntuusers.de

SMTP Masquerading über PHP? (PHORUM, Wordpress)

Status: Ungelöst | Ubuntu-Version: Nicht spezifiziert
Antworten |

Team-Lab22.de

Avatar von Team-Lab22.de

Anmeldungsdatum:
9. Mai 2007

Beiträge: 620

Wohnort: Gurlach

Halöle @ll,

hier habe derzeitig ein kleines Problem bereffend des Masqueradings bei ausgehenden E-Mail Adressen. Was ich damit meine, ist, das wenn ich eine E-Mail über ein PHP Formular versende, immer nur der Hostname (www-data@d6b1.srv1.de) genommen wird. In PHorum ist die Umschreibung aktiviert, zumindets wurde eine From: Emailadresse im Admin Interfaces des tools konfiguriert.

Die Frage ist, ob ich nun was in PHP oder Postfix vergessen habe, weswegen das Masquerading net funktioniert. Der Postfix ist als Satellitensystem installiert, soll diese Mails als relay also nur weiter zustellen.

Nunnja.. hier mal die Configs und Logs:

main.cf:

Code# 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 (Ubuntu)
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 = d6b1.srv1.de
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination =  d6b1.srv1.de, localhost.srv1.de, localhost
relayhost = mail.srv1.de
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all

mail.info (log)

CodeJul 28 09:35:33 d6b1 postfix/qmgr[4740]: 45B6C20D37: from=<www-data@d6b1.srv1.de>, size=763, nrcpt=1 (queue active)
Jul 28 09:35:33 d6b1 postfix/smtp[4751]: 45B6C20D37: to=<testaccount@test123.de>, relay=mail.srv1.de[IPISEGAL]:25, delay=0.08, delays=0.06/0.02/0/0.01, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as 5BC6C1484E)
Jul 28 09:35:33 d6b1 postfix/qmgr[4740]: 45B6C20D37: removed

Fällt jemandem was dazu ein, wieso die PHP Anwendungen den From Header nicht umschreiben können?? Wäre echt klasse!! Danke ☺

Antworten |