LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
Search this Thread
Old 12-05-2006, 02:21 PM   #1
gloveny
LQ Newbie
 
Registered: Jul 2006
Posts: 24

Rep: Reputation: 15
Email MX accounts


Hi I have a root server with 1and1 and I donít want to use there 1and1 mail server. I want to use my own. All of my domains are stated as MX in the 1and1 control panel and I think this means they are using my (the root) servers default email server. But it doesnít work. I can log in on some accounts using outlook, but cant receive or send email. On other accounts I cant even log in. Is the default server set to be disabled and I have to enable it? All 1and1 can suggest is that I use there mail server and I donít want to do this because of the restrictions they impose.

All I want to do is be able to use PHP sending email through MY mail server and also make outlook to use my web server. Is this possible and why does it currently not work?

I have Linux 2.6, Pleask 8 and Apache ?

Thanks,
Graham Vincent
 
Old 12-05-2006, 02:50 PM   #2
FlipHDK
LQ Newbie
 
Registered: Dec 2006
Location: UK
Distribution: FC6
Posts: 28

Rep: Reputation: 15
Don't quite understand all that, "All I want to do is be able to use PHP sending email through MY mail server and also make outlook to use my web server. Is this possible and why does it currently not work?"

But, to send email with php you can use this code:
PHP Code:
<?php
$to 
'flip@domain'//Change this to your email address
$subject 'Wakeup bob!'// This is the subject of your email
$message '<b>yo</b>, whassup?';
$headers "From: flip@domain\r\n" .
       
'X-Mailer: PHP/' phpversion() . "\r\n" .
       
"MIME-Version: 1.0\r\n" .
       
"Content-Type: text/html; charset=utf-8\r\n" .
       
"Content-Transfer-Encoding: 8bit\r\n\r\n";

// Send
mail($to$subject$message$headers);
?>
 
Old 12-05-2006, 04:13 PM   #3
gloveny
LQ Newbie
 
Registered: Jul 2006
Posts: 24

Original Poster
Rep: Reputation: 15
Yes but will this go through my mail server or 1and1's. I guess this depends on if I set it to MX or not? Ok.

What about the emails not working when I use MX mail server. Does linux automatically block the ports for email? DO I have to set up a mail server in plesk?
 
Old 12-05-2006, 04:20 PM   #4
FlipHDK
LQ Newbie
 
Registered: Dec 2006
Location: UK
Distribution: FC6
Posts: 28

Rep: Reputation: 15
What distro are you using? Does it have a firewall installed?
 
Old 12-05-2006, 06:03 PM   #5
gloveny
LQ Newbie
 
Registered: Jul 2006
Posts: 24

Original Poster
Rep: Reputation: 15
Flip, I’m using Linux 2.6.16-rc6-060427a and YES it does have a firewall. I’ve just been reading some of the (absolutely terrible and completely out of date) 1and1's FAQ (f’in awful Qrap) and they suggest ways in blocking and allowing port 110 and 25 which are email ports right?

I'll check my iptables settings....

My default policy is set to denie and port 110 and 25 arent shown as allow so they are blocked.

My Iptables control panel only gives UDP, TCP and ICMP. If I wanted to open email ports which one should I use?

Last edited by gloveny; 12-05-2006 at 06:07 PM.
 
Old 12-05-2006, 06:33 PM   #6
FlipHDK
LQ Newbie
 
Registered: Dec 2006
Location: UK
Distribution: FC6
Posts: 28

Rep: Reputation: 15
I think most of them are UDP
But theres a list here or all of them and port's for everything: http://en.wikipedia.org/wiki/List_of...P_port_numbers
 
Old 12-06-2006, 10:41 AM   #7
gloveny
LQ Newbie
 
Registered: Jul 2006
Posts: 24

Original Poster
Rep: Reputation: 15
ok I've opened ports 110 and 25 on the firewall.

I can use a domain that is still set to MX but only when using pop.1and1.co.uk as the pop3 incomming and auth.smtp.1and1.co.uk as the outgoing. Shoudlnt I be able to use mail.myDomain.com for both? or at least one of the incomming or out going. I cant seem to use it for either.
By using the pop.1and1.co.uk AND auth.smtp.1and1.co.uk servers, does this mean that Im not using my servers at all, and that Im still using 1and1's email servers?
 
  


Reply

Tags
mail, php


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
Evolution email accounts yuk Linux - Software 1 05-16-2005 09:32 PM
Email client that support HTTP email accounts tumana Linux - Software 6 04-29-2005 09:26 PM
Using mutt for two different email accounts spydrmn Linux - General 2 03-08-2005 08:16 AM
email accounts crazy diamond General 2 10-13-2004 09:02 AM
Email Accounts transfer hodfords Linux - General 0 10-15-2001 05:24 PM


All times are GMT -5. The time now is 10:05 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration