Debian 64 bits + Postfix

Discussion in 'Installation/Configuration' started by essex13, Oct 26, 2010.

  1. essex13

    essex13 New Member

    Hi there

    I have been studying Debian on my own and have not been success to install postfix.

    Could anyone gimme a hand, please.

    Sorry, postfix + no-ip.org

    Thanks a lot

    =========================================================================================

    ifconfig

    eth0 Link encap:Ethernet HWaddr 00:13:d4:8c:f6:62
    inet6 addr: fe80::213:d4ff:fe8c:f662/64 Scope:Link
    UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
    RX packets:260514 errors:0 dropped:0 overruns:0 frame:0
    TX packets:249248 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:188446072 (179.7 MiB) TX bytes:45506598 (43.3 MiB)
    Interrupt:22 Base address:0x6000

    eth1 Link encap:Ethernet HWaddr 00:e0:7d:fd:d3:9a
    inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
    inet6 addr: fe80::2e0:7dff:fefd:d39a/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:214749 errors:0 dropped:0 overruns:0 frame:0
    TX packets:269810 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:37845028 (36.0 MiB) TX bytes:187792703 (179.0 MiB)
    Interrupt:19 Base address:0x8c00

    lo Link encap:Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    inet6 addr: ::1/128 Scope:Host
    UP LOOPBACK RUNNING MTU:16436 Metric:1
    RX packets:1756 errors:0 dropped:0 overruns:0 frame:0
    TX packets:1756 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:204043 (199.2 KiB) TX bytes:204043 (199.2 KiB)

    ppp0 Link encap:point-to-Point Protocol
    inet addr:200.101.229.103 P-t-P:201.14.143.254 Mask:255.255.255.255
    UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
    RX packets:245231 errors:0 dropped:0 overruns:0 frame:0
    TX packets:223870 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:3
    RX bytes:182133762 (173.6 MiB) TX bytes:39031636 (37.2 MiB)

    =========================================================================================

    /etc/postfix/main.cf


    readme_directory = no

    # TLS parameters
    smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
    smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
    smtpd_use_tls=yes
    smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
    smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache

    # See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
    # information on enabling SSL in the smtp client.

    myhostname = ewb.no-ip.org
    alias_maps = hash:/etc/aliases
    alias_database = hash:/etc/aliases
    myorigin = /etc/mailname
    mydestination = smtp.ewb.no-ip.org, localhost.ewb.no-ip.org, localhost, ewb.no-ip.org
    relayhost =
    mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
    mailbox_command =
    mailbox_size_limit = 0
    recipient_delimiter = +
    inet_interfaces = all
    inet_protocols = ipv4
    hostname = abc
    mydomain = no-ip.org
    home_mailbox = Maildir/
    no-ip.org = ewb.no-ip.org
    relay_domains = ewb.no-ip.org


    # added later ...trying...
    #========================================
    smtpd_recipient_restrictions = reject_invalid_hostname,
    reject_unknown_recipient_domain,
    reject_unauth_destination,
    reject_rbl_client sbl.spamhaus.org,
    permit

    smtpd_helo_restrictions = reject_invalid_helo_hostname,
    reject_non_fqdn_helo_hostname,
    reject_unknown_helo_hostname

    smtpd_client_restrictions = reject_rbl_client dnsbl.sorbs.net

    =========================================================================================

    # telnet localhost 25

    Trying 127.0.0.1...
    Connected to localhost.
    Escape character is '^]'.
    220 ewb.no-ip.org ESMTP Postfix (Debian/GNU)
    quit
    221 2.0.0 Bye
    Connection closed by foreign host.
     
    Last edited: Oct 26, 2010
  2. falko

    falko Super Moderator ISPConfig Developer

  3. essex13

    essex13 New Member

    Postfix

    Hi Falko, thanks for your reply,

    Let me go on the learning... :)


    Sorry, it may sound silly questions but as I have been learning by myself it is very challenging :)

    My local internet provider is www.tpa.com.br ( brasilian )



    What is the file's name to type in below lines, please?

    #----------------

    postconf -e 'relayhost = smtp.tpa.com.br'

    postconf -e 'smtp_sasl_auth_enable = yes'

    postconf -e 'smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd'

    postconf -e 'smtp_sasl_security_options ='

    #----------------

    #--- below - my internet provider + user at this proivder + pass = correct ?

    echo "smtp.tpa.com.br ewb1:1234567" > /etc/postfix/sasl_passwd

    chown root:root /etc/postfix/sasl_passwd

    chmod 600 /etc/postfix/sasl_passwd

    postmap /etc/postfix/sasl_passwd

    /etc/init.d/postfix restart
     
    Last edited: Oct 26, 2010
  4. falko

    falko Super Moderator ISPConfig Developer

    If smtp.tpa.com.br is your ISP's mail server and your username and password are correct, then this looks good. :)
     
  5. essex13

    essex13 New Member

    Posfix

    Hi there again, yeah...but it did not work.

    What Am I missing here? :(
     
  6. falko

    falko Super Moderator ISPConfig Developer

    Are you sure that smtp.tpa.com.br is the correct server? Maybe you need to ask your ISP what the right server is.
     
  7. essex13

    essex13 New Member

    Postfix + no-ip = happiness

    It sure is...

    I use "no-ip" as you saw above. I have been trying to install "postfix" as one of my Debian Linux goals.
    For a newbie it has been a tough one lol

    It ain't that "piece of cake" as they say... :(

    What should I check... ?

    Thank you, danke, merci, grazie, muchas gracias, arigato, nihau...
     
    Last edited: Oct 28, 2010
  8. falko

    falko Super Moderator ISPConfig Developer

    Can you log into smtp.tpa.com.br with the username and password using a normal email client such as Outlook or Thunderbird?
     
  9. essex13

    essex13 New Member

    ...

    ok, thanks.

    I just wanted to know what is wrong above.

    - debian 64 bits on a server ( computer for learning )

    - No-ip

    - Trying to setup postfix...

    - I dont have any dns installed because I have been trying 2 do that 2...

    and be happy :)
     

Share This Page