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 encapoint-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.
What exactly is the problem? Any errors in your mail log? BTW, if you send from a dynamic IP, your emails migt not arrive because almost all dynamic IPs are blacklisted. In this case you should set up relaying: http://www.howtoforge.com/postfix_relaying_through_another_mailserver
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
If smtp.tpa.com.br is your ISP's mail server and your username and password are correct, then this looks good.
Are you sure that smtp.tpa.com.br is the correct server? Maybe you need to ask your ISP what the right server is.
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...
Can you log into smtp.tpa.com.br with the username and password using a normal email client such as Outlook or Thunderbird?
... 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