LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   sending mail via telnet not sending to cc address (https://www.linuxquestions.org/questions/linux-server-73/sending-mail-via-telnet-not-sending-to-cc-address-4175479374/)

socalheel 10-02-2013 03:19 PM

sending mail via telnet not sending to cc address
 
title pretty much says it all.

when i log into my server on port 25 to send a mail message (with netcat or telnet, both give the same issue). when i set the cc: address, the cc recipient isn't sent the message.

any ideas why?

here is my message and the logs for the message.

Code:

[root@server01 scripts]# nc localhost 25
220 server01.place.com ESMTP Postfix
ehlo legitdomain.com
250-server01.place.com
250-PIPELINING
250-SIZE 40240000
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH PLAIN LOGIN
250-AUTH=PLAIN LOGIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
mail from: deez@home.net
250 2.1.0 Ok
rcpt to: first.last@domaintwo.com
250 2.1.5 Ok
data
354 End data with <CR><LF>.<CR><LF>
subject: from deez
cc: myemail@gmail.com
reply-to: myemail@gmail.com

this was cc'd to my gmail account and i bet i don't get it.

does the header show cc:mymail@gmail.com

make sure to reply to this.

.
250 2.0.0 Ok: queued as 123456789
quit
221 2.0.0 Bye

[root@server01 scripts]# grep 123456789 /var/log/maillog

Oct  2 15:56:35 server01 postfix/smtpd[2859]: 123456789: client=server01[127.0.0.1]

Oct  2 15:57:05 server01 postfix/cleanup[2815]: 123456789: message-id=<20131002195635.123456789@server01.place.com>

Oct  2 15:57:05 server01 postfix/qmgr[1940]: 123456789: from=<deez@home.net>, size=569, nrcpt=2 (queue active)

Oct  2 15:57:06 server01 postfix/smtp[2844]: 123456789: to=<journaling@work.com>, orig_to=<datafeeds@work.com>, relay=10.2.10.50[10.2.10.50]:25, delay=44, delays=42/0/0.94/0.29, dsn=2.6.0, status=sent (250 2.6.0 <20131002195635.123456789@server01.place.com> [InternalId=87355551] Queued mail for delivery)

Oct  2 15:57:07 server01 postfix/smtp[2887]: 123456789: to=<first.last@domaintwo.com>, relay=outbounds8.obsmtp.com[64.18.7.12]:25, delay=44, delays=42/0/0.44/1.5, dsn=2.0.0, status=sent (250 Thanks)

Oct  2 15:57:07 server01 postfix/qmgr[1940]: 123456789: removed


kbp 10-02-2013 10:43 PM

Putting Cc: in the body of the message is information for the mail client only, you need to actually add a recipient - here's an example from Wikipedia:

Quote:

S: 220 smtp.example.com ESMTP Postfix
C: HELO relay.example.org
S: 250 Hello relay.example.org, I am glad to meet you
C: MAIL FROM:<bob@example.org>
S: 250 Ok
C: RCPT TO:<alice@example.com>
S: 250 Ok
C: RCPT TO:<theboss@example.com>
S: 250 Ok
C: DATA
S: 354 End data with <CR><LF>.<CR><LF>
C: From: "Bob Example" <bob@example.org>
C: To: "Alice Example" <alice@example.com>
C: Cc: theboss@example.com
C: Date: Tue, 15 January 2008 16:02:43 -0500
C: Subject: Test message
C:
C: Hello Alice.
C: This is a test message with 5 header fields and 4 lines in the message body.
C: Your friend,
C: Bob
C: .
S: 250 Ok: queued as 12345
C: QUIT
S: 221 Bye
{The server closes the connection}
Ref: http://en.wikipedia.org/wiki/Simple_...nsfer_Protocol

socalheel 10-03-2013 07:57 AM

man if that wasn't simple ...

thanks bro!


All times are GMT -5. The time now is 05:45 PM.