Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux HostsFree MagazinesJobs
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > The Community > The Coffee Lounge
Reload this Page no 250 after telnet 127.0.0.1 25
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

The Coffee Lounge General chat about anything that goes, a good place to introduce yourself and say hi, tell a Joke, or just relax.

Site Navigation
Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 05-14-2008   #1 (permalink)
Just Joined!
 
Join Date: May 2008
Location: Gladstone Australia
Posts: 0
no 250 after telnet 127.0.0.1 25

I am trying to get postfix to work on Fedora core 8. Software installed for mail.
cyrus-sasl
dovecot
postfix
sendmail
sendmail-cf
spamassassin

Used system-switch-mail and made postfix the default mail server. edited the main.cf file to be with the direction of Postfix Mail Server — Fedora Unity Project

.................................................. ....................
#soft_bounce = no

command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix

#default_privs = nobody
#myorigin = $myhostname
#myorigin = $mydomain

inet_interfaces = all

#inet_interfaces = $myhostname
#inet_interfaces = $myhostname, localhost
#proxy_interfaces =
#proxy_interfaces = 1.2.3.4
#mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
#mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain,
# mail.$mydomain, www.$mydomain, ftp.$mydomain
#local_recipient_maps = unixasswd.byname $alias_maps
#local_recipient_maps = proxy:unixasswd.byname $alias_maps
#local_recipient_maps =
# default setting is 550 (reject mail) but it is safer to start
#unknown_local_recipient_reject_code = 550
#mynetworks_style = class
#mynetworks_style = subnet

mynetworks_style = host

#mynetworks = 168.100.189.0/28, 127.0.0.0/8
#mynetworks = $config_directory/mynetworks
#mynetworks = hash:/etc/postfix/network_table
#relay_domains = $mydestination
#relay_recipient_maps = hash:/etc/postfix/relay_recipients
#in_flow_delay = 1s
# username->Firstname.Lastname mapping.
#alias_maps = dbm:/etc/aliases

alias_maps = hash:/etc/aliases

#alias_maps = hash:/etc/aliases, nis:mail.aliases
#alias_maps = netinfo:/aliases
#alias_database = dbm:/etc/aliases
#alias_database = dbm:/etc/mail/aliases

alias_database = hash:/etc/aliases

#alias_database = hash:/etc/aliases, hash:/opt/majordomo/aliases
#recipient_delimiter = +
#home_mailbox = Mailbox
#home_mailbox = Maildir/
#mail_spool_directory = /var/mail
#mail_spool_directory = /var/spool/mail
#mailbox_command = /some/where/procmail
#mailbox_command = /some/where/procmail -a "$EXTENSION"
#mailbox_transport = lmtp:unix:/var/lib/imap/socket/lmtp
# mailbox_transport = lmtp:unix:/var/lib/imap/socket/lmtp
# local_destination_recipient_limit = 300
# local_destination_concurrency_limit = 5
#fallback_transport = lmtp:unix:/var/lib/imap/socket/lmtp
#fallback_transport =
#luser_relay = $user@other.host
#luser_relay = $local@other.host
#luser_relay = admin+$local
#header_checks = regexp:/etc/postfix/header_checks
#fast_flush_domains = $relay_domains
#smtpd_banner = $myhostname ESMTP $mail_name
#smtpd_banner = $myhostname ESMTP $mail_name ($mail_version)
#local_destination_concurrency_limit = 2
#default_destination_concurrency_limit = 20

debug_peer_level = 2

#debug_peer_list = 127.0.0.1
#debug_peer_list = some.domain
#debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
xxgdb $daemon_directory/$process_name $process_id & sleep 5
# debugger_command =
# PATH=/bin:/usr/bin:/usr/local/bin; export PATH; (echo cont;
# echo where) | gdb $daemon_directory/$process_name $process_id 2>&1
# >$config_directory/$process_name.$process_id.log & sleep 5
# debugger_command =
# PATH=/bin:/usr/bin:/sbin:/usr/sbin; export PATH; screen
# -dmS $process_name gdb $daemon_directory/$process_name
# $process_id & sleep 1

sendmail_path = /usr/sbin/sendmail.postfix
newaliases_path = /usr/bin/newaliases.postfix
mailq_path = /usr/bin/mailq.postfix
setgid_group = postdrop
html_directory = no
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/postfix-2.4.5/samples
readme_directory = /usr/share/doc/postfix-2.4.5/README_FILES
myorigin = mydomain.net
mydestination = mydomain.net
relayhost = smtp.relayhost.net.au

...........................................

telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
220 host.example.com ESMTP Postfix>

from a remote machine we get the same

telnet 10.0.0.200 25
Trying 10.0.0.200...
Connected to mydomain.net.
Escape character is '^]'.
220 mydomain.net ESMTP Postfix

Port 25 is open I assume as the above telnet.
pimmoos is offline   Reply With Quote
Old 05-14-2008   #2 (permalink)
Linux Enthusiast
 
rcgreen's Avatar
 
Join Date: May 2006
Location: the hills
Posts: 572
Send a message via Yahoo to rcgreen
The response is correct. Next you type helo <name of server>

For example.

Quote:
Connecting to the host.


With this in mind it's very easy to send a basic text email just using telnet which is installed on most computers. First open up a terminal and type the following, of
course replacing mail.yourserver.dk with the address of your SMTP server:

telnet mail.yoursever.dk 25


This should return something like:

telnet mail.yoursever.dk 25
Trying 172.16.0.2...
Connected to mail.yoursever.dk (172.16.0.2).
Escape character is '^]'.
220 cirkeline.yoursever.dk ESMTP Postfix (Debian/GNU)


HELO command.


Next we need to introduce ourselves using the helo command, in reality this can be anything and the mail will still be sent OK (although a false helo command
will result in a spam score from spamassasin for example).

helo mail.localhost
250 mail.yoursever.dk


MAIL FROM command.

Next we type mail from: followed by your email address, if you use a name as well then you need to put angle brackets around you address,
like Bob Peers <email@domain.dk>, but the name is not necessary

mail from:me@domain.dk
250 Ok


RCPT TO command.

Now type rcpt to: followed by who you are sending the mail to, following the same rules as above. Note that this IS NOT the address that appears on the To: line in
your email client or webmail, the two are completely unrelated which is why you can receive spam when your email address is not listed on the To: line.

rcpt to:you@domain.com
250 Ok


DATA command.

Now for the actual mail body, type the word 'data' and press enter:

data
354 End data with <CR><LF>.<CR><LF>


Your SMTP server might not display the extra help here but it simply means that we type our mail body now and to end the input press enter then type a single .
followed by pressing enter again. At this point we can add extra headers if we wish but they are not required. This just shows that the To and From fields are just
part of the message body and have nothing to do with the delivery of the email. However if you do not add them then the message will arrive with
'To: undisclosed-recipients:; in the To field, which again will probably cause your message to be assigned a spam score. If you do decide to add these extra
headers make sure you leave a blank line between them and the 'real' text you wish to appear in the body of the message.

to:Joe Bloggs<you@domain.com>
from: Bob Peers<me@domain.dk>
subject:Telnet test

Hope you are following along OK...
.
250 Ok: queued as 4DDFB180CDA


To actually send the mail we need to quit the telnet session by typing 'quit'.

quit
221 Bye
Connection closed by foreign host.
Sending emails using telnet :: bobpeers.com
rcgreen is offline   Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Job Search
keyword location
Post a Job »
job title, keywords or company
city, state or zip jobs by job search

Free Magazines
Free eBook:"Vulnerability Management for Dummies"
Get all the Facts and See How to Implement a Successful Vulnerability Management Program.
subscribe
Google vs The World: The Battle of the Message Security Vendors
With such a powerful name behind it, Google Message Security stands out in a sea of products that do exactly the same thing - or so they say. So when it comes right down to it, how does the Google selection stack up against the rest of messaging security's big guns?
subscribe
The Enterprise Newsweekly
eWeek is the essential technology information source for builders of e-business.
subscribe
Oracle Magazine
Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe
Total Telecom
Total Telecom is "The Economist of the communications industry".
subscribe
More free magazines »



All times are GMT. The time now is 12:49 PM.




© 2000 - 2008 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.2.0