LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-02-2013, 03:19 PM   #1
socalheel
Member
 
Registered: Oct 2012
Location: Raleigh, NC
Distribution: CentOS / RHEL
Posts: 158

Rep: Reputation: 3
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

Last edited by socalheel; 10-02-2013 at 06:32 PM.
 
Old 10-02-2013, 10:43 PM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
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
 
1 members found this post helpful.
Old 10-03-2013, 07:57 AM   #3
socalheel
Member
 
Registered: Oct 2012
Location: Raleigh, NC
Distribution: CentOS / RHEL
Posts: 158

Original Poster
Rep: Reputation: 3
man if that wasn't simple ...

thanks bro!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Problem in sending copy of a mail to another email address tonmoy Linux - Server 6 06-21-2013 08:50 AM
[SOLVED] Web server sending e-mail to incorrect IP address, bypassing HOSTS file mmyles Linux - Server 4 02-21-2013 03:37 PM
Block Sending mail from Telnet vikki Linux - Server 2 11-22-2009 01:23 PM
Why is PostFix sending mail using the email address of the smtp account? taigon Linux - Server 34 02-09-2007 01:09 AM
Sending e-mail to IP address. roba Linux - General 3 08-21-2002 01:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration