#1  
Old 26th October 2010, 00:40
essex13 essex13 is offline
Junior Member
 
Join Date: Oct 2010
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default Debian 64 bits + Postfix

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 by essex13; 26th October 2010 at 00:47.
Reply With Quote
Sponsored Links
  #2  
Old 26th October 2010, 15:31
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,727 Times in 2,565 Posts
Default

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_re...her_mailserver
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 26th October 2010, 20:04
essex13 essex13 is offline
Junior Member
 
Join Date: Oct 2010
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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 by essex13; 26th October 2010 at 20:17.
Reply With Quote
  #4  
Old 27th October 2010, 14:42
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,727 Times in 2,565 Posts
Default

If smtp.tpa.com.br is your ISP's mail server and your username and password are correct, then this looks good.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 27th October 2010, 20:33
essex13 essex13 is offline
Junior Member
 
Join Date: Oct 2010
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default Posfix

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

What Am I missing here?
Reply With Quote
  #6  
Old 28th October 2010, 18:12
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,727 Times in 2,565 Posts
Default

Are you sure that smtp.tpa.com.br is the correct server? Maybe you need to ask your ISP what the right server is.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #7  
Old 28th October 2010, 23:39
essex13 essex13 is offline
Junior Member
 
Join Date: Oct 2010
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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 by essex13; 28th October 2010 at 23:51.
Reply With Quote
  #8  
Old 29th October 2010, 15:02
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,727 Times in 2,565 Posts
Default

Can you log into smtp.tpa.com.br with the username and password using a normal email client such as Outlook or Thunderbird?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #9  
Old 29th October 2010, 18:34
essex13 essex13 is offline
Junior Member
 
Join Date: Oct 2010
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default ...

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
Reply With Quote
Reply

Bookmarks

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
mail authentication failure - unknown user or password evok Installation/Configuration 9 16th October 2010 06:37
[debian 5 + ispconfig 3] Unable to send mail tanakskool HOWTO-Related Questions 6 4th November 2009 18:20
localhost postfix/master: fatal: bind 127.0.0.1 port 125: Permission denied g18c Installation/Configuration 4 24th March 2009 17:39
Centos 4.4 32bit Hangs, High Server load 3cwired_com Server Operation 11 16th November 2006 15:47
Verify email setup meekish Installation/Configuration 28 27th October 2006 15:36


All times are GMT +2. The time now is 13:29.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.