[SOLVED] How to connect Internal Sendmail Server for Roaming Outlook Clients
Linux - GeneralThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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??
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
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.
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 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
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.
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..
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..
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.