LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-20-2011, 04:01 AM   #1
simeon.mattes
Member
 
Registered: Feb 2009
Posts: 60

Rep: Reputation: 15
using an email server from an external domain


Hi,

I have a slackware machine which has preinstalled the sendmail mail server. For this machine I have given a domain name (I have a static IP), so I'm able to administer my email through the UI of webmin, i.e. I can send and receive emails.

However I would like to use it only as an email server, i.e. what I would like to do is
  1. Conecting to it, by using an email client (e.g. Thundirbird) in order to receive and send emails
  2. Conecting to it from a web server so a to send new posts etc.

By searching around I found that in order to test the mail server from outside you can use the following series of commands:
Code:
telnet mydomain 25
helo mydomain
mail from:<useremail_in_my_domain>
rcpt to:<useremail_in_external_domain>
...
However in rcpt to: I receive an error "Relaying denied".

Here is also the DNS configuration

Code:
Name	Mode	Value	Priority
domainname	A	myip	0
*.domainname	A	myip	0
mail.domainname	MX	myip	1
Any ideas, or how I could configure the email server?

Thanks in advance

Last edited by simeon.mattes; 03-20-2011 at 04:06 AM.
 
Old 03-20-2011, 11:15 AM   #2
ComputerErik
Member
 
Registered: Apr 2005
Location: NYC
Distribution: Debian, RHEL
Posts: 269

Rep: Reputation: 54
The reason you are getting that response is the new default behavior for any modern MTA is to not act as a relay. You will need to either allow relay based on IP or require authentication to relay. Which one is appropriate for you will all depend on where the mail server is and how you expect to connect to it.

The allow by IP is probably the easiest configuration (just add an IP or subnet to relay-domains and restart sendmail) would work fine if you will only be connecting from the same IP or small set of IPs which will not change. This might be appropriate if the mail server is behind your firewall and you will only be sending mail from within that LAN. It can also work if the server is hosted outside of your LAN but you have a static public IP and will only be sending mail from that location. Obviously this might not work so well in this day where it is common to have email on a smart phone or want to access mail from a laptop while on the road. If this is the case you will need to setup some sort of authentication mechanism (there are a few but SASL is probably the most common) so that you can relay from any IP as long as you are authenticated as a valid user.

For the receiving mail part you will probably want to look into some sort of POP3 or IMAP server such as Dovecot so you can configure the client to access the mail server and keep a copy of mail locally on your computer as well. For the web portion you will need yet another piece of software installed to give you a web interface to the mail. There are a few options, and I am not a huge fan of webmail so I have never set one up myself, but have heard Squirrel mail is a pretty good solution.

Lastly you might want to look into replacing sendmail with postfix as it is generally easier to configure and a more flexible solution.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot connect to email server via external connection timgerr Linux - Server 5 10-02-2008 05:44 PM
Email account passwords for each domain on the server rossx Linux - Server 4 08-20-2008 03:01 AM
Setup Email Server with ISP Domain rocky_karat Linux - Newbie 5 05-21-2008 07:37 AM
Email Server not picking up external emails Mike-BB Linux - Software 5 01-23-2006 05:17 AM
external: domain of sender address does not exist talking to my server eagleone Linux - Networking 1 11-02-2005 08:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:37 AM.

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