LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-12-2009, 07:53 AM   #1
mail4vijay
Member
 
Registered: Oct 2009
Location: Delhi
Distribution: CentOS , RHEL
Posts: 214

Rep: Reputation: 33
How to connect Internal Sendmail Server for Roaming Outlook Clients


Hi,

I have CentOS 5 + Sendmail within the local network with Smarthosting settings. How my Laptops users will connect my local Sendmail server for sending / receiving e-mails while out of the office network. I have router but no firewall in place in local network.

Any suggestion would be greatly appreciated.
 
Old 11-12-2009, 08:02 AM   #2
centosboy
Senior Member
 
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137

Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by mail4vijay View Post
Hi,

I have CentOS 5 + Sendmail within the local network with Smarthosting settings. How my Laptops users will connect my local Sendmail server for sending / receiving e-mails while out of the office network. I have router but no firewall in place in local network.

Any suggestion would be greatly appreciated.

for sending, your users will use the ip or hostname of the server in their smtp settings.
for receiving, you need to be running some sort of pop/imap prog.

for collecting mail, the same as above...the server hostname or ip in pop or imap settings

dovecot is quite popular and easy to configure.
of course, you have to specify in the sendmail access file who has access to RELAY.
 
Old 11-12-2009, 08:15 AM   #3
mail4vijay
Member
 
Registered: Oct 2009
Location: Delhi
Distribution: CentOS , RHEL
Posts: 214

Original Poster
Rep: Reputation: 33
Quote:
Originally Posted by centosboy View Post
for sending, your users will use the ip or hostname of the server in their smtp settings.
for receiving, you need to be running some sort of pop/imap prog.

for collecting mail, the same as above...the server hostname or ip in pop or imap settings

dovecot is quite popular and easy to configure.
of course, you have to specify in the sendmail access file who has access to RELAY.
Thanks for the prompt reply.. thats fine and dovecot already running fine inside the local network , but if some goes outside the network with his/her laptop like in case of at home , then how he /she will connect Local / office sendmail server at home / elsewhere from the same outlook settings??

Or is there any way i can make smtp / pop single settings for them without changing anything in Outlook so that they can work freely and comfortable with MS outlook without any issue??

Any suggestion would be highly appreciated.
 
Old 11-12-2009, 08:29 AM   #4
centosboy
Senior Member
 
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137

Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by mail4vijay View Post
Thanks for the prompt reply.. thats fine and dovecot already running fine inside the local network , but if some goes outside the network with his/her laptop like in case of at home , then how he /she will connect Local / office sendmail server at home / elsewhere from the same outlook settings??

Or is there any way i can make smtp / pop single settings for them without changing anything in Outlook so that they can work freely and comfortable with MS outlook without any issue??

Any suggestion would be highly appreciated.
In this case you need to use AUTHSMTP - ie sender can send from anywhere but has to authenticate to the smtp server first.
This also has to be set in the smtp settings of mail client.
Another option is pop before smtp. ie when the user collects or does receive in the mail client, his ip is stored in a db and that user ip is then allowed to send email via the smtp server

if the mailserver is running on a local ip, it is up to you to set up some sort of 1:1 nat/pat
 
Old 11-12-2009, 08:57 AM   #5
okcomputer44
Member
 
Registered: Jun 2008
Location: /home/laz
Distribution: CentOS/Debian
Posts: 246

Rep: Reputation: 53
Hi,

remove the dnl(s) from the lines and rebuild sendmail (/etc/mail/sendmail.mc)

Code:
dnl TRUST_AUTH_MECH(`EXTERNAL DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
dnl define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
dnl define(`confAUTH_OPTIONS', `A p')dnl

The confauthoptions needs for the outlook to authenticate as clear text.
The trust_auth and confauth_mech lines need for the be allowed as an external client.

Anyway remove the dnls and rebuild sendmail with any of these command:

Code:
m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf

or
issue these in /etc/mail/ directory:
Code:
make clean
make all
make restart
Then start the saslauthd daemon:

Code:
/etc/init.d/saslauthd start
Make this service to run permantently by this command:

Code:
chkconfig --level 345 saslauthd on
These just for getting the mails from anywhere.

To send mails just setup in outlook: "My server requires authentication" at Servers, Outgoing Mail Servers in M$ outlook or outlook express.

That is all.

Let me know if something goes wrong I'll help you.

Laz.
 
Old 11-12-2009, 09:57 AM   #6
mail4vijay
Member
 
Registered: Oct 2009
Location: Delhi
Distribution: CentOS , RHEL
Posts: 214

Original Poster
Rep: Reputation: 33
Quote:
Originally Posted by okcomputer44 View Post
Hi,

remove the dnl(s) from the lines and rebuild sendmail (/etc/mail/sendmail.mc)

Code:
dnl TRUST_AUTH_MECH(`EXTERNAL DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
dnl define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
dnl define(`confAUTH_OPTIONS', `A p')dnl

The confauthoptions needs for the outlook to authenticate as clear text.
The trust_auth and confauth_mech lines need for the be allowed as an external client.

Anyway remove the dnls and rebuild sendmail with any of these command:

Code:
m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf

or
issue these in /etc/mail/ directory:
Code:
make clean
make all
make restart
Then start the saslauthd daemon:

Code:
/etc/init.d/saslauthd start
Make this service to run permantently by this command:

Code:
chkconfig --level 345 saslauthd on
These just for getting the mails from anywhere.

To send mails just setup in outlook: "My server requires authentication" at Servers, Outgoing Mail Servers in M$ outlook or outlook express.

That is all.

Let me know if something goes wrong I'll help you.

Laz.
Thanks a lot for all reply, i did the same setting for SMTP AUTH for sendmail server and it is going well.... but one problem is that I have only local IP address associate with mail server , how people will connect smtp / pop local address from outside the local network.

FYI i have one cisco 1841 router with pubic IP address. I i use nat / pat for 25/110/143 ports Does it work fine. Is it safe to open these ports in router and does not create any spam ??
Or anyother solution like rpc-over-http settings use sometime with MS exchange server for roaming clients.

Thanks
 
Old 11-12-2009, 10:10 AM   #7
centosboy
Senior Member
 
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137

Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by mail4vijay View Post
Thanks a lot for all reply, i did the same setting for SMTP AUTH for sendmail server and it is going well.... but one problem is that I have only local IP address associate with mail server , how people will connect smtp / pop local address from outside the local network.

FYI i have one cisco 1841 router with pubic IP address. I i use nat / pat for 25/110/143 ports Does it work fine. Is it safe to open these ports in router and does not create any spam ??
Or anyother solution like rpc-over-http settings use sometime with MS exchange server for roaming clients.

Thanks
yes this is fine.
if you are worried about spam you can use a mail proxy to listen on port 25 on mail server and redirect to another port for sendmail - possibly submission port 587.
this is just an option though
 
Old 11-12-2009, 10:15 AM   #8
mail4vijay
Member
 
Registered: Oct 2009
Location: Delhi
Distribution: CentOS , RHEL
Posts: 214

Original Poster
Rep: Reputation: 33
Quote:
Originally Posted by centosboy View Post
yes this is fine.
if you are worried about spam you can use a mail proxy to listen on port 25 on mail server and redirect to another port for sendmail - possibly submission port 587.
this is just an option though

Any tutorial for mail proxy ?? Does it impact to local environment?? b'z locally everyone using port 25 for smtp.

Thanks again for your suggestion
 
Old 11-12-2009, 10:29 AM   #9
centosboy
Senior Member
 
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137

Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by mail4vijay View Post
Any tutorial for mail proxy ?? Does it impact to local environment?? b'z locally everyone using port 25 for smtp.

Thanks again for your suggestion
the proxy is an option.
it has to listen on port 25, so your mailserver must listen on another port...it doesnt matter which as long as it is not an assigned one and in use. the proxy would then forward mail to this port
users would still send email via 25. just that all their email would be virus scanned and checked for spam etc etc

alternatively the proxy runs on another machine. just another option..

assp is a good one
Code:
http://assp.sourceforge.net/
 
Old 11-12-2009, 11:50 AM   #10
mail4vijay
Member
 
Registered: Oct 2009
Location: Delhi
Distribution: CentOS , RHEL
Posts: 214

Original Poster
Rep: Reputation: 33
Quote:
Originally Posted by centosboy View Post
the proxy is an option.
it has to listen on port 25, so your mailserver must listen on another port...it doesnt matter which as long as it is not an assigned one and in use. the proxy would then forward mail to this port
users would still send email via 25. just that all their email would be virus scanned and checked for spam etc etc

alternatively the proxy runs on another machine. just another option..

assp is a good one
Code:
http://assp.sourceforge.net/
Thanks for the reply again. I have already spamassissan + Clamav enable with openwebmail.... I think i should only require mail proxy only..

Thanks
 
Old 11-12-2009, 04:56 PM   #11
okcomputer44
Member
 
Registered: Jun 2008
Location: /home/laz
Distribution: CentOS/Debian
Posts: 246

Rep: Reputation: 53
I am sorry mail4vijay to not to answer your question, but I was not at home. Anyway centosboy helped you out.

Quote:
Originally Posted by centosboy View Post
Code:
http://assp.sourceforge.net/
This looks good I must have a try on it.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
How many clients can connect to a VMware server? pratyush General 1 07-09-2007 02:05 PM
using sendmail from one internal server to another BillStoll Linux - Software 7 04-30-2006 09:13 AM
Configuring DNS Server on internal stand alone network with virtual clients scnetlab Red Hat 2 03-23-2006 01:31 AM
outlook exp. not able to connect to server dvishloff Linux - Networking 0 06-23-2003 10:10 AM
I cannot send mail using Outlook and sendmail server? tthai01 Linux - Networking 2 02-12-2003 08:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration