nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

Mail hub and smart host

This is a discussion on Mail hub and smart host within the Mail Servers forums, part of the Mastering Servers category; I am a bit confused about these two. What is the difference between a mail hub and a smart host. ...


Go Back   nixCraft Linux Forum > Mastering Servers > Mail Servers

Register FAQ Members List Calendar Forgotten your password? Mark Forums Read
  #1 (permalink)  
Old 08-28-2007, 12:23 PM
Member
User
 
Join Date: Jul 2005
Posts: 85
Rep Power: 0
ricc
Default Mail hub and smart host

I am a bit confused about these two. What is the difference between a mail hub and a smart host.

I would also like to know how to setup an smtp server in my office so that I don't need to use the ISP's smtp server. I prefer to use postfix.

ricc
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-28-2007, 09:07 PM
tom tom is offline
Contributors
User
 
Join Date: Jun 2005
Location: London, UK
Posts: 213
Rep Power: 4
tom is on a distinguished road
Default

a smart host uses ISP's mail server to send and retrieve mails also known as null mail client. All your lan computer send mail to local mail server and local smart host uses ISP's mail server.


a mail hub is your own linux / unix / windows server running at least smtp / pop3 / imap service. a mail hub is directly connected to internet and sends and retrieves mail without ISP's server. It means your server should be online 24x7x365 days. So that it sits on your LAN, acting as the interface between your users and the Internet.


Quote:
I would also like to know how to setup an smtp server in my office so that I don't need to use the ISP's smtp server. I prefer to use postfix.
Is your server connected to internet 24x7? Do you have dedicated IP? If so you can setup Postdfix as smtp server

If you have DHCP based ip... does your isp allows incoming port 25 (most isp block to avoid spam). Also keep in mind that most properly configured mail server will reject your mail as dhcp ip often black listed and used for spam.
Reply With Quote
  #3 (permalink)  
Old 08-29-2007, 03:11 PM
Member
User
 
Join Date: Jul 2005
Posts: 85
Rep Power: 0
ricc
Default

Thank you tom,

A good explanation.

I have a dsl connection. Currently we have a business email account from yahoo and use its smtp server for routing email. For now, I would like to know how to set up a smart host. I would also like to setup postfix such that it allows only authorized users. Like for instance we can only use Yahoo's smtp server when we do a username/password authentication. I hope you can understand what I mean.

Also, as you mentioned, I had earlier tried to use a postfix server as a mail hub. But most of the time the receiving server used to say that it is rejected. This brings me to my other question. How do these receiving servers know that my IP is dynamic and not static. And what happens when I opt for a static IP from my ISP and he gives me an IP from the same set of IP's that he has in the dynamic pool.

I apologize for any mistakes and I hope that you all understand what I am saying.

Thanks,
ricc
Reply With Quote
  #4 (permalink)  
Old 08-29-2007, 09:00 PM
monk's Avatar
Senior Member
User
 
Join Date: Jan 2005
Location: Tibet
My distro: Debian GNU/Linux
Posts: 482
Rep Power: 5
monk will become famous soon enough monk will become famous soon enough
Default

This is what I use, I don't have yahoo as ISP but local cable isp:

main.cf config:
Code:
smtp_sasl_auth_enable = yes
smtp_sasl_security_options = noanonymous
smtp_sasl_password_maps = hash:/etc/postfix/saslpasswd
relayhost = [smtp.isp.com]
Replace smtp.isp.com with actual ISP smtp server name. You can also specify port with [smtp.isp.comortNo]

Also leave smtp_sasl_security_options to blank if ISP's smtp using
is plain text auth i.e. it should look as follows:
Code:
smtp_sasl_security_options =

Open /etc/postfix/saslpasswd and add:
Code:
smtp.mail.isp.com  user@domain.com:password
Once again setup username / server and password.

Code:
postmap /etc/postfix/saslpasswd
postfix reload
Now configure outlook / and other MUAs to send mail via your server. To get mail from ISP use fetchmail and locally send to mailbox.

A nice tutorial @ 16.*SMTP Authentication for Mail servers
__________________
May the force with you!
Reply With Quote
  #5 (permalink)  
Old 08-30-2007, 01:01 PM
Member
User
 
Join Date: Jul 2005
Posts: 85
Rep Power: 0
ricc
Default

Thanks Monk,

I have tried it and it works. My local clients can send email using my SMTP server without authentication.

How do I setup authentication for my SMTP server. Like the authentication mechanism used by the ISPs.

I have seen that email clients can use different types of authentication like : PLAIN; NTLM/SPA ; GSSAPI ; DIGEST-MD5; CRAM-MD5; Login ; and lastly POP before SMTP.

How do we setup our smart-host to use these and allow only authenticated users to use my server. I am just experimenting to better understand how email is transferred.

ricc
Reply With Quote
Reply

Bookmarks


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 On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
No route to host csvinayak Linux hardware 8 04-07-2008 06:44 PM
xen API/sdk for use in sles10 sp1 host namitha XEN 0 12-05-2007 06:29 PM
No Route to Host zakaferoz Mail Servers 1 11-18-2007 09:20 AM
Virtual Host NeoGreen Web servers 3 08-12-2007 01:01 PM
Smart mini HowTo B!n@ry Getting started tutorials 4 12-17-2006 04:23 AM


All times are GMT +5.5. The time now is 02:10 AM.


Powered by vBulletin® Version 3.7.4 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36