E-Mail Config/Test

E-Mail Test mit Telnet:

myMac:~ c1audio$ telnet vmk.zhdk.ch 25
Trying 195.176.254.139…
Connected to vmk.zhdk.ch.
Escape character is ‘^]’.
220 php5.vmk.zhdk.ch ESMTP Exim 4.69 Tue, 31 Jan 2012 07:26:07 -0500
HELO 172.31.40.115
250 php5.vmk.zhdk.ch Hello 172.31.40.115 [172.31.40.115]
MAIL FROM:xy@z.ch
250 OK
RCPT TO:ab@c.ch
250 Accepted
DATA
354 Enter message, ending with “.” on a line by itself
Subject: Test local
Hallo, das isch nur en tescht…
E-Mail ist noch nicht aufgeschaltet, funktioniert erst intern.
.
250 OK id=1RsCnO-0007xx-Mh

Entsprechendes Exim4 Logfile:

2012-01-31 07:26:07 no host name found for IP address 172.31.40.115
2012-01-31 07:28:24 1RsCnO-0007xx-Mh <= xyz@z.ch H=(172.31.40.115) [172.31.40.115] P=smtp S=332
2012-01-31 07:28:24 1RsCnO-0007xx-Mh => r1@zzz.ch <ab@c.ch> R=smarthost T=remote_smtp_smarthost H=pre.vmk.zhdk.ch [195.176.254.132]
2012-01-31 07:28:24 1RsCnO-0007xx-Mh -> r2@zzz.ch <ab@c.ch> R=smarthost T=remote_smtp_smarthost H=pre.vmk.zhdk.ch [195.176.254.132]
2012-01-31 07:28:24 1RsCnO-0007xx-Mh Completed

Entsprechende Exim4 Configs:

:/etc/exim4# cat update-exim4.conf.conf


dc_use_split_config=’true’

:/etc/exim4# cat virtual/c.ch
ab: r1@zzz.ch, r2@zzz.ch

:/etc/exim4# cat conf.d/router/050_exim4-config_vdom_aliases
vdom_aliases:
debug_print = “R: vdom aliases $local_part@$domain”
driver = redirect
allow_defer
allow_fail
domains = dsearch;/etc/exim4/virtual
data = ${expand:${lookup{$local_part}lsearch*@{/etc/exim4/virtual/$domain}}}
retry_use_local_part
pipe_transport = address_pipe
file_transport = address_file
no_more

:/etc/exim4# grep virtual conf.d/main/01_exim4-config_listmacrosdefs
domainlist local_domains = MAIN_LOCAL_DOMAINS : dsearch;/etc/exim4/virtualhosts

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.