Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-10-2004, 10:26 AM   #1
Registered: Jul 2003
Location: Norway
Posts: 65

Rep: Reputation: 15
Internet mail setup Fedora 1. How do I use MX?

I have bought a domain, lets call it, And managed to mess around with the DNS and sendmail settings (called the server, so when I send mail using the "mail" command in the terminal, I can send mail to my hotmail that looks like it comes from (or when using Webmin it looks like So. It is working sort of. Doesn't even go in the junk mail

But... Sadly, the answers to the email does not go to my linux machine.

Other information that maybe is useful (???):

I also got a fixed IP (cost me a bit), and a router / modem / firewall box (billion 746)

I don't use telnet (seems to be connected to sendmail somehow I read in these forums ), but I like ssh.

I bought the domain from (same as, and it has email forwarding as part of it services. (So I forward all email to this address to my hotmail per today).

But in the domain admin web pages of they have also some text boxes called MX1: MX2: MX3 etc. And from what I can read on this forum, this got something to do with mail.

Soo... My questions is. What do I type in these blank MX boxes to make the email go to my linux machine instead of my hotmail? My best bet is simply the IP address to my ADSL modem / router. Do I include some port information to. Like ? (On the site, they ask us nicely not to use IP addresses in the MX boxes, but names... but I don't see how I can do that with my home server)

I guess I would also have to open up port 25 on my firewalls, and forward port 25 to the Linux machine (sendmail uses port 25?)

Another question is how I make these mail visible in the gnome "outlook" lookalike program, but I wait with that. And if there is any security conserns I should look into.

Hope yous can help



Last edited by Bjorkli; 05-10-2004 at 10:29 AM.
Old 05-10-2004, 10:36 AM   #2
Senior Member
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
Ok, your MX record on your DNS has to be set to the static external IP for your server. You also need to make sure you are getting port 25 traffic to your server. And that your MTA (sendmail, qmail, postfix, ect.) is setup to receive mail for your domain (AND NONE OTHER! don't be an open relay).

What you probably keep hearing about telnet is that is a good way to test your mailserver. You can telnet to port 25 on a machine and type commands to the SMTP server. For instance, if you telnet 25 (my mailserver) and type helo (not a typo) you'll get a message like this:


That tells you it is working

As for making mail available to mail clients... you will want to install a POP or IMAP server (I like courier-imap myself). For security issues I'd only allow SSL IMAP or POP access. If you need to use your SMTP server externally then use STMP AUTH so your not an open relay.
Old 05-12-2004, 02:32 PM   #3
Registered: Jul 2003
Location: Norway
Posts: 65

Original Poster
Rep: Reputation: 15
Ok. I went to and did the following.

Made a subdomain called and directed that using a menu called IPv4 / IPv6 to my IP address. Then put in my MX 1 textbox, opened port 25 on my firewall, and forwarded port 25 from my ADSL router to my Linux server and opened por t25 on the linux firewall. All should be set there. (So they tell me anyway)

But now I have to use webmin to set my sendmail settings so I can receive mail from this domain. How do I do that?

In webmin I have following settings I can play with:

Fetchmail Mail Retrival (Webmin message: No Unix users have .fetchmailrc files.)

Procmail: (The procmail actions below from /etc/procmailrc will apply to all email delivered to users on your system. However, they will only be used if procmail is installed and the Sendmail local_procmail feature is enabled.
No Procmail actions have been configured yet.)

And under Sendmail options I have the following:

Sendmail Options (O)
Mail Aliases (aliases)
Local Domains (Cw) - Here I typed my domain (eg.
Domain Masquerading (CM) - Changed to just
Trusted Users (T)
Address Mappings (virtuser)
Domain Routing (mailertable)
Outgoing Addresses (generics)
Outgoing Domains (CG)
Domain Mapping (domaintable)
Spam Control (access)
Relay Domains (CR)
Sendmail M4 Configuration
Mail Queue (mailq)
0 messages
User Mailboxes

The others I left alone

When I contacted jtshaw mailerserver (se below) I managed to get the right reply, but when I did a telnet to the linux server (locally) I get following error message:

[bengt@linux bengt]$ telnet 25
telnet: connect to address Connection refused
[bengt@linux bengt]$

So... I have to do something else to make my email function. What am I missing?



Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Mail server setup with dialup Internet Wynand1 Linux - Networking 1 08-12-2005 04:10 AM
internet setup help in fedora core3? rodkate Fedora 2 07-09-2005 01:09 AM
How to setup mail server on fedora core 3.. ravindra_patel Fedora 2 06-21-2005 03:24 PM
Internet setup with Fedora Core 1 pamount Linux - Newbie 3 07-02-2004 09:27 PM
mail server and mail client setup issues htm Linux - General 1 03-16-2004 10:32 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:25 PM.

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