Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved]msmtp send only 'blank' mails
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
MALON3
Tux's lil' helper
Tux's lil' helper


Joined: 16 Jan 2004
Posts: 87

PostPosted: Fri Aug 12, 2005 10:58 am    Post subject: [Solved]msmtp send only 'blank' mails Reply with quote

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.

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:
Code:

echo "Test Mail" | sendmail malonx@gmx.de


A mail to my isp was delievered but without contents i these case 'Test Mail'.

Here the entire conversation:
Code:

root@alpha mail # echo "Test Mail" | sendmail -d malonx@gmx.de
<-- 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:<malonx@gmx.de>
<-- 250 2.1.0 {mp011} ok
--> RCPT TO:<malonx@gmx.de>
<-- 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 malonx@gmx.de

# 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):
Code:

Aug 12 12:47:30 host=mail.gmx.net tls=on auth=on user='user' from=malonx@gmx.de recipients=malonx@gmx.de mailsize=10 exitcode=EX_OK


For me looks everthing ok...
But i only receive blank mails :(

Somebody knows where i can found my problem?

Greetz malon3


Last edited by MALON3 on Fri Nov 25, 2005 11:57 pm; edited 3 times in total
Back to top
View user's profile Send private message
MALON3
Tux's lil' helper
Tux's lil' helper


Joined: 16 Jan 2004
Posts: 87

PostPosted: Sun Aug 14, 2005 12:08 am    Post subject: Reply with quote

Now i have the problem found :)

Code:

echo "Test Mail" | sendmail -d malonx@gmx.de


The problem is that the test mail only consists of one invalid header
line. This header line seems to be ignored by the GMX SMTP server.

Code:

echo -e "Subject: Test Mail\n\nTest Mail" | sendmail malonx@gmx.de


works :)

greetz malon3
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum