Hi
I have a problem with msmtp:
Scenario:
I will send the local produced output(cron,logrotate...) of a gentoo
box via mail to my isp...
Ok i merged msmtp for these tasks(version: 1.4.0, on a gentoo system,
compiled with useflags: doc, mailwrapper and ssl)
1. One question for basic undestanding:
I allready merged mailwrapper...this programm installs only a sendmail
'fake' this sendmail fake is called from the applications like cron to
send mails...
And finally this fake calls the real delivery programm i my case mmstp
to send mails?
Thats correctly?
2. The main problem:
When i tried to send a testmail via:
A mail to my isp was delievered but without contents i these case 'Test
Mail'.
Here the entire conversation:
Code: |
root@...25... mail # echo "Test Mail" | sendmail -d malon3@...24...
<-- 220 {mp011} GMX Mailservices ESMTP
--> EHLO gmx.de
<-- 250-{mp011} GMX Mailservices
<-- 250-8BITMIME
<-- 250-ENHANCEDSTATUSCODES
<-- 250-AUTH=LOGIN CRAM-MD5 PLAIN
<-- 250-AUTH CRAM-MD5 LOGIN PLAIN
<-- 250 STARTTLS
--> STARTTLS
<-- 220 2.7.0 {mp011} Ready to start TLS
TLS certificate information:
Owner:
Common Name: mail.gmx.net
Organization: GMX GmbH
Locality: Munich
State or Province: Bayern
Country: DE
Issuer:
Common Name: Thawte Server CA
Organization: Thawte Consulting cc
Organizational unit: Certification Services Division
Locality: Cape Town
State or Province: Western Cape
Country: ZA
Validity:
Activation time: Thu Nov 18 15:12:50 2004
Expiration time: Fri Nov 18 15:12:50 2005
Fingerprints:
SHA1:
6C:74:93:C4:D4:18:D9:12:80:A9:CB:D5:2B:0B:F8:E6:63:19:6B:2F
MD5: 36:05:2B:24:2D:E1:69:AB:B5:6E:6D:E7:18:BA:62:EE
--> EHLO gmx.de
<-- 250-{mp011} GMX Mailservices
<-- 250-8BITMIME
<-- 250-ENHANCEDSTATUSCODES
<-- 250-AUTH=LOGIN CRAM-MD5 PLAIN
<-- 250-AUTH CRAM-MD5 LOGIN PLAIN
<-- 250 STARTTLS
--> AUTH CRAM-MD5
<-- 334 PDExMDkzLjExMjM4NDM2MjNAbXAwMTE+
--> MjAzODk1NzYgNDdhN2Y5M2JkNzIzMDRhMGYxMmVjOWI5NDI0OTNmMmQ=
<-- 235 2.7.0 {mp011} Go ahead
--> MAIL FROM:<malon3@...24...>
<-- 250 2.1.0 {mp011} ok
--> RCPT TO:<malon3@...24...>
<-- 250 2.1.5 {mp011} ok
--> DATA
<-- 354 {mp011} Go ahead
--> Test Mail
--> .
<-- 250 2.6.0 {mp011} Message accepted
--> QUIT
<-- 221 2.0.0 {mp011} GMX Mailservices
|
Here my mailwrapper & msmtp configs:
/etc/mail/mailer.conf:
Code: |
# Execute the "real" sendmail program from msmtp,
# named /usr/sbin/msmtp
#
sendmail /usr/bin/msmtp
send-mail /usr/bin/msmtp
mailq /usr/bin/msmtp
newaliases /usr/bin/msmtp
|
/etc/mstmprc:
Code: |
## msmtp config ##
# account
account default
host mail.gmx.net
port 25
protocol smtp
domain gmx.de
# smtp auth
auth cram-md5
user 'user'
password 'pass'
# tls
tls on
tls_starttls on
tls_certcheck on
# envolpe addresse
from malon3@...24...
# dsn
dsn_notify off
dsn_return off
# bcc header
keepbcc off
# log to specified file
# and not with syslog
logfile /var/log/mail/msmtp.log
syslog off
|
The log entry for msmtp(for the action i descripe above):
For me looks everthing ok...
But i only receive blank mails
Somebody knows where i can found my problem?
Greetz malon3
|