Find the answer to your Linux question:
Results 1 to 2 of 2
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 ...
  1. #1
    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.

  2. #2
    Linux Engineer rcgreen's Avatar
    Join Date
    May 2006
    Location
    the hills
    Posts
    1,112
    The response is correct. Next you type helo <name of server>

    For example.

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •