Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 10th June 2007, 09:13
mnewbegin mnewbegin is offline
Member
 
Join Date: May 2007
Posts: 31
Thanks: 0
Thanked 2 Times in 2 Posts
Default mail server setup? using free DNS services. ultimate setup needed

I have setup my server at work; it is going to be for mail/web server functions.

I followed the link here

http://www.howtoforge.com/perfect_setup_ubuntu704

Setup guide

But when I try to send mail out it comes as


name@servername.domain.com
instead of
name@domain.com

I know I can change this but during the install it said to use localhost, localhost.domain.com and a few others for the name, to make sure mail sends correctly.

My other problem is I am using webmin, I love it but everyone says it’s harder to configure than ispconfig, it looks so nice though and seems to do the trick.


My 2 main concerns are getting the domain name settled and getting incoming mail working. I am not using bind, I am using free dns servers, and they provide me with 4 name servers. I am using “everydns” service, but I don’t know how to add a MX record for that service, do I just make one that’s called mail.domain.com or mx.domain.com
And point it to my IP address and my server will do the rest?

I cannot receive mail to this box now because I have no incoming mail server configured.


I have a static IP address, and can buy another if I need a second IP address.

Please help,

Ultimately I want to end with I will be shooting for hosting, my mailserver that will provide services for 60 email clients,


PLEASE HELP. I WILL TRY ANYTHING THAT WILL WORK.

also what program should i use for a gui interface?

squirrelmail ? and do you recommend postfix or other for this number of clients.


a step by step guide start to finish just configuring mailserver part would be excellent.
Reply With Quote
Sponsored Links
  #2  
Old 11th June 2007, 14:59
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
Default

Quote:
Originally Posted by mnewbegin
But when I try to send mail out it comes as


name@servername.domain.com
instead of
name@domain.com
You must set the correct sender address in your email client (e.g. Thunderbird, Outlook, Evolution,...).

Quote:
Originally Posted by mnewbegin
My 2 main concerns are getting the domain name settled and getting incoming mail working. I am not using bind, I am using free dns servers, and they provide me with 4 name servers. I am using “everydns” service, but I don’t know how to add a MX record for that service, do I just make one that’s called mail.domain.com or mx.domain.com
You must create an A record for mail.domain.com or mx.domain.com (doesn't matter) which points to your server's public IP address, and then you must create an MX record like this:

Code:
domain.com. MX 10 mail.domain.com.
or

Code:
domain.com. MX 10 mx.domain.com.
Of course, Postfix must be configured to accept emails for domain.com. You can either do this with webmin or on the command line: http://www.howtoforge.com/forums/showthread.php?t=2


Quote:
Originally Posted by mnewbegin
I have a static IP address, and can buy another if I need a second IP address.
You don't need a second IP address.

Quote:
Originally Posted by mnewbegin
also what program should i use for a gui interface?
Squirrelmail is fine.

Quote:
Originally Posted by mnewbegin
and do you recommend postfix or other for this number of clients.
You can't go wrong with Postfix.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 15th June 2007, 18:09
mnewbegin mnewbegin is offline
Member
 
Join Date: May 2007
Posts: 31
Thanks: 0
Thanked 2 Times in 2 Posts
Default im still sort of lost

Ive caught on to most of what I had to do for this stuff but im still lost, I started over with a fresh install.


When I was using the perfect setup ubuntu 7.04 tutorial,

What do i type here

The directions say

echo server1.example.com > /etc/hostname

my hostname right now is ubuntu

but for my mail to resolve correctly, do I change this to

mx.example.com or just plain example.com


and then further down in the instructions I what do I use for.

Mailname?

and other destinations to accept mail for?


on the ubuntu page https://help.ubuntu.com/7.04/server/C/postfix.html


they show an example of mail.example.com

I have configured mx.domain.com to goto my ip address all ready.


sorry some of the generic directions mess with my head during the setup, if someone posts an example just make a fake company name please.
Reply With Quote
  #4  
Old 16th June 2007, 15:30
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
Default

First you must make up your mind which hostname you want to use (e.g. ubuntu.yourdomain.com). Then you simply replace server1.example.com with ubuntu.yourdomain.com.
ubuntu.yourdomain.com should have an A record pointing to your server. If you want to receive emails for yourdomain.com, you create an MX record like this:

yourdomain.com MX 0 ubuntu.yourdomain.com
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
The Following User Says Thank You to falko For This Useful Post:
feeninuoumn (2nd January 2014)
  #5  
Old 21st June 2007, 16:57
mnewbegin mnewbegin is offline
Member
 
Join Date: May 2007
Posts: 31
Thanks: 0
Thanked 2 Times in 2 Posts
Default hopefully this will help me and others.

hopefully this will help me and others,

here are screenshots of what I have.

http://lyncomail.com/record.jpg


http://lyncomail.com/webmin-postfix.png

http://lyncomail.com/webmin-postfix2.png


how do i fix this.

I will post any file needed here so i can get this working.

I thought, a picture speaks a thousand words, so where could i go wrong.

there has to be something wrong with my setup.

mail goes out, but doesnt come in.

I am running postfix, dovecot, im installing squirrelmail soon, and hopefully I will have this working today.

I hope I have all the available ports and things open.


I can do a clean install if i need to.

Last edited by mnewbegin; 21st June 2007 at 17:07.
Reply With Quote
  #6  
Old 22nd June 2007, 14:25
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
Default

The DNS records look ok (if 216.220.234.160 is your server's IP address).

What's the output of
Code:
postconf -n
and
Code:
netstat -tap
? Any errors in your mail log?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #7  
Old 22nd June 2007, 15:38
mnewbegin mnewbegin is offline
Member
 
Join Date: May 2007
Posts: 31
Thanks: 0
Thanked 2 Times in 2 Posts
Default outputs

-------------------------------------------------------------------------------------------------
mark@ubuntu:/$ postconf -n

alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
broken_sasl_auth_clients = yes
config_directory = /etc/postfix
home_mailbox = Maildir/
inet_interfaces = all
inet_protocols = all
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
mydestination = lyncomail.com, localhost, localhost.localdomain, localhost
myhostname = lyncomail.com
mynetworks = 127.0.0.0/8
myorigin = /etc/mailname
recipient_delimiter = +
relayhost =
smtp_tls_note_starttls_offer = yes
smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache
smtp_use_tls = yes
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject _unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
smtpd_sasl_security_options = noanonymous
smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtpd_tls_auth_only = no
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache
smtpd_tls_session_cache_timeout = 3600s
smtpd_use_tls = yes
tls_random_source = dev:/dev/urandom
mark@ubuntu:/$
-------------------------------------------------------------------------------------------------


mark@ubuntu:~$ netstat -tap
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 ubuntu.lyncomail.c:2208 *:* LISTEN -
tcp 0 0 *:imaps *:* LISTEN -
tcp 0 0 *op3s *:* LISTEN -
tcp 0 0 *:mysql *:* LISTEN -
tcp 0 0 *:netbios-ssn *:* LISTEN -
tcp 0 0 *op3 *:* LISTEN -
tcp 0 0 *:imap2 *:* LISTEN -
tcp 0 0 *:webmin *:* LISTEN -
tcp 0 0 *:www *:* LISTEN -
tcp 0 0 ubuntu.lyncomail.co:ipp *:* LISTEN -
tcp 0 0 *:smtp *:* LISTEN -
tcp 0 0 *:https *:* LISTEN -
tcp 0 0 *:microsoft-ds *:* LISTEN -
tcp 0 0 ubuntu.lyncomail.c:2207 *:* LISTEN -
tcp6 0 0 *:5900 *:* LISTEN 13869/vino-server
tcp6 0 0 *:ftp *:* LISTEN -
tcp6 0 0 *:ssh *:* LISTEN -
tcp6 0 0 ip6-localhost:ipp *:* LISTEN -
tcp6 0 0 *:smtp *:* LISTEN -
mark@ubuntu:~$
--------------------------------------------------------------------------------------------------------


where do i find my mail log file?
im kinda new to postfix sorry.
Reply With Quote
  #8  
Old 22nd June 2007, 15:42
mnewbegin mnewbegin is offline
Member
 
Join Date: May 2007
Posts: 31
Thanks: 0
Thanked 2 Times in 2 Posts
Default error

I went into my mailbox and i had a message in there
but i cant remember if i have changed my server name in apache,

what should that be set at at my situation?



/etc/cron.daily/logrotate:
apache2: apr_sockaddr_info_get() failed for ubuntu.lyncomail.com
apache2: Could not reliably determine the server's fully qualified domain name, using
127.0.0.1 for ServerName
apache2: apr_sockaddr_info_get() failed for ubuntu.lyncomail.com
apache2: Could not reliably determine the server's fully qualified domain name, using
127.0.0.1 for ServerName
Reply With Quote
  #9  
Old 23rd June 2007, 22:12
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
Default

I don't see the file included in your Postfix configuration where the email addresses are definded. What's the output of
Code:
ls -la /etc/postfix
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #10  
Old 25th June 2007, 17:27
mnewbegin mnewbegin is offline
Member
 
Join Date: May 2007
Posts: 31
Thanks: 0
Thanked 2 Times in 2 Posts
 
Default output

heres the output

root@ubuntu:/home/mark# ls -la /etc/postfix
total 88
drwxr-xr-x 4 root root 4096 2007-06-19 13:26 .
drwxr-xr-x 119 root root 12288 2007-06-25 09:46 ..
-rw-r--r-- 1 root root 318 2007-06-15 14:15 dynamicmaps.cf
-rw-r--r-- 1 root root 1750 2007-06-19 13:26 main.cf
-rw-r--r-- 1 root root 3968 2007-06-15 14:15 master.cf
-rw-r--r-- 1 root root 17975 2007-03-28 10:40 postfix-files
-rwxr-xr-x 1 root root 6840 2007-03-28 10:40 postfix-script
-rwxr-xr-x 1 root root 22239 2007-03-28 10:40 post-install
drwxr-xr-x 2 root root 4096 2007-06-15 14:19 sasl
drwxr-xr-x 2 root root 4096 2007-06-15 14:24 ssl
root@ubuntu:/home/mark#
Reply With Quote
The Following User Says Thank You to mnewbegin For This Useful Post:
feeninuoumn (2nd January 2014)
Reply

Bookmarks

Thread Tools
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Filtering emails using Spamassassin and Clamav for Exchange 2000 Server Rocky Server Operation 19 11th March 2008 09:27
No SPF record. beryl Installation/Configuration 6 17th May 2007 20:52
Problems with Postfix Mysql Courier PatrickAdrichem Installation/Configuration 3 13th April 2007 16:44
Setting up a backup mail server setup with two installations of ISPConfig zitch Tips/Tricks/Mods 7 30th December 2006 11:07
Help needed with DNS Server teves Installation/Configuration 4 24th October 2006 21:36


All times are GMT +2. The time now is 06:59.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.