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 18th September 2008, 23:28
kdomrose kdomrose is offline
Junior Member
 
Join Date: Sep 2008
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Question RESOLVED Postfix installation and configuration problem

Greetings,

I am hoping someone might be able to help out here, or get me going in the right direction.

I am attempting to setup a mail server and it is kicking my arse. :P

Been trying now for about 2 weeks..

I have Ubuntu 8.04 for an os

I have installed LAMP server and SSH

I have been following several different how to guides... I have reinstalled Linux between attempts so i always started out fresh.

The latest guide I have tried is this one http://www.howtoforge.com/virtual-us...-ubuntu8.04-p4

I really would like the virtual users and domains thing...

I believe I have followed the guide but somewhere something is wrong.

When I attempt to telnet to the localhost 25 to test postfix I get the following


root@tweety:/home/centechadmin# telnet mail.centechcomputers.com 25 Trying 65.15.185.110...
Connected to centechcomputers.com.
Escape character is '^]'.
Connection closed by foreign host.
root@tweety:/home/centechadmin#

The pop3 seems to be working fine

My postfix/main.cf file is as follows

myhostname = mail.centechcomputers.com
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu/GNU)
biff = no
append_dot_mydomain = no
myorigin = centechcomputers.com
mydestination = %myhostname, localhost, localhost.localdomain
mynetworks = 127.0.0.1/8
recipient_delimiter = +
inet_interfaces = all
proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domain $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks $virtual_mailbox_limit_maps
readme_directory = /usr/share/doc/postfix
html_directory = /usr/share/doc/postfix/html
mydestination = mail.centechcomputers.com, localhost, localhost.localdomain
virtual_alias_domains =
virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, mysql:/etc/postfix/mysql-virtual_email2email.cf
virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf
virtual_mailbox_base = /home/vmail
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000
smtpd_sasl_auth_enabled = yes
broken_sasl_auth_clients = yes
smtpd_sasl_authenticated_header = yes
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
smtpd_use_tls = yes
smtpd_tls_cert_file = /etc/postfix/smtpd.cert
smtpd_tls_key_file = /etc/postfix/smtpd.key
transport_maps = proxy:mysql:/etc/postfix/mysql-virtual_transports.cf
virtual_create_maildirsize = yes
virtual_mailbox_extended = yes
virtual_mailbox_limit_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailbox_limit_maps.cf
virtual_mailbox_limit_override = yes
virtual_maildir_limit_message = "The user you are trying to reach is over quota."
virtual_overquota_bounce = yes
content_filter = amavis:[127.0.0.1]:10024
receive_override_options = no_address_mappings

anyone see anything obvious????

Thanks in advance for any advice.

Karl

Last edited by kdomrose; 19th September 2008 at 20:37. Reason: resolved
Reply With Quote
Sponsored Links
  #2  
Old 19th September 2008, 00:15
kdomrose kdomrose is offline
Junior Member
 
Join Date: Sep 2008
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default Making progress...

Ok..I found an error in my main.cf file.... had 127.0.0.1/8 instead of 127.0.0.0/8

Now I can at least get some output from the telnet session. I and still not getting the correct output....Not giving me the 250-AUTH LOGIN PLAIN

Will keep digging..

Karl
Reply With Quote
  #3  
Old 19th September 2008, 00:35
kdomrose kdomrose is offline
Junior Member
 
Join Date: Sep 2008
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Angry The plot thickens...

Ok...I discovered that I totally missed creating one of the MySQL tables needed...DOAH!!!!!

I created it and now when I send a test email to the server it gets rejected with relaying is denied error

I sent the email from an external account.

The error was in a bounce message i got back.

Failed to deliver to 'centechadmin@centechcomputers.com'
SMTP module(domain centechcomputers.com) reports:
host mail.centechcomputers.com says:
554 5.7.1 <centechadmin@centechcomputers.com>: Relay access denied

Now I don't know where to look to figure this one out.....

Here is from the mail log

Sep 18 17:29:41 tweety postfix/smtpd[5926]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled
Sep 18 17:29:41 tweety postfix/smtpd[5926]: connect from mail.easycgi.com[66.245.177.160]
Sep 18 17:29:42 tweety postfix/smtpd[5926]: NOQUEUE: reject: RCPT from mail.easycgi.com[66.245.177.160]: 554 5.7.1 <centechadmin@centechcomputers.com>: Relay access denied; fro$
Sep 18 17:29:42 tweety postfix/smtpd[5926]: disconnect from mail.easycgi.com[66.245.177.160]
Sep 18 17:33:02 tweety postfix/anvil[5928]: statistics: max connection rate 1/60s for (smtp:66.245.177.160) at Sep 18 17:29:41
Sep 18 17:33:02 tweety postfix/anvil[5928]: statistics: max connection count 1 for (smtp:66.245.177.160) at Sep 18 17:29:41
Sep 18 17:33:02 tweety postfix/anvil[5928]: statistics: max cache size 1 at Sep 18 17:29:41
Sep 18 17:34:32 tweety postfix/qmgr[5654]: AAFD32E1B7: from=<double-bounce@mail.centechcomputers.com>, size=982, nrcpt=1 (queue active)
Sep 18 17:34:32 tweety postfix/smtp[5934]: AAFD32E1B7: to=<postmaster@centechcomputers.com>, orig_to=<postmaster>, relay=none, delay=960, delays=959/0.05/0.21/0, dsn=5.4.6, sta$
Sep 18 17:34:32 tweety postfix/bounce[5935]: warning: AAFD32E1B7: undeliverable postmaster notification discarded
Sep 18 17:34:32 tweety postfix/qmgr[5654]: AAFD32E1B7: removed



Karl

Last edited by kdomrose; 19th September 2008 at 00:38.
Reply With Quote
  #4  
Old 19th September 2008, 01:36
kdomrose kdomrose is offline
Junior Member
 
Join Date: Sep 2008
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default can now send emails...

I got the darn thing to send out an email my changing mynetworks parameter.

I didn't think I needed to add my ip range into it as I had setup for virtual users and domains.... Kinda going to stink when one of us travels and is on a different ip scheme... any suggestions??? I really DON'T want to restrict ip ranges...I am willing to rely on password login to keep people from relaying...Can this be done????

On another note..I still can not receive mail...It seems to get delivered into the que...and then goes away it seems...not able to get it...

karl
Reply With Quote
  #5  
Old 19th September 2008, 16:13
kdomrose kdomrose is offline
Junior Member
 
Join Date: Sep 2008
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default almost working

OK...

I installed Squirrelmail and it is working fine...

I can send and receive mail using Squirrelmail fine.

I can not pull mail that is sent to the server using Mozilla Thunderbird on another computer.

Example...

I go into Thunderbird and send a message from an account on my new mail server it is delivered fine. If I send mail to the account on my mail server I can not retrieve it with Thunderbird. If I login to Squirrelmail then it is sitting there in the inbox..So the mail is moving....I just can't pull it from a remote machine.....

Suggestions??? Would this be a setting in the Postfix/Main.cf???

Karl
Reply With Quote
  #6  
Old 19th September 2008, 16:39
mn1988 mn1988 is offline
Junior Member
 
Join Date: Sep 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Postfix basic installation

Hi.. I am na newbie. Need some help. Here's the issue

I Have : Fedora core 7 virtual image with default MTA sendmail
Want to : Replace sendmail with Postfix.
Tried :
1. Disabled SElinux
2. Used Linux RPM - yum install Postfix
3. Switched from sendmail to postfix using system-switch-mail
4. main.cf parameters-
myhostname=machinename.domainname
mydomain=domainname
inet_interfaces=all

Problem :mail command is not working as it did for sendmail

Will be grateful for any help.
Thanks.
Reply With Quote
  #7  
Old 19th September 2008, 18:29
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
Default

Quote:
Originally Posted by kdomrose View Post
I didn't think I needed to add my ip range into it as I had setup for virtual users and domains.... Kinda going to stink when one of us travels and is on a different ip scheme... any suggestions??? I really DON'T want to restrict ip ranges...I am willing to rely on password login to keep people from relaying...Can this be done????
You must enable "Server requires authentication" in your email client.

Quote:
I go into Thunderbird and send a message from an account on my new mail server it is delivered fine. If I send mail to the account on my mail server I can not retrieve it with Thunderbird. If I login to Squirrelmail then it is sitting there in the inbox..So the mail is moving....I just can't pull it from a remote machine.....
Are there any errors in /var/log/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
  #8  
Old 19th September 2008, 18:30
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
Default

Quote:
Originally Posted by mn1988 View Post
Hi.. I am na newbie. Need some help. Here's the issue

I Have : Fedora core 7 virtual image with default MTA sendmail
Want to : Replace sendmail with Postfix.
Tried :
1. Disabled SElinux
2. Used Linux RPM - yum install Postfix
3. Switched from sendmail to postfix using system-switch-mail
4. main.cf parameters-
myhostname=machinename.domainname
mydomain=domainname
inet_interfaces=all

Problem :mail command is not working as it did for sendmail

Will be grateful for any help.
Thanks.
Please open a new thread.
__________________
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
  #9  
Old 19th September 2008, 19:26
kdomrose kdomrose is offline
Junior Member
 
Join Date: Sep 2008
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default log output

Falco,

Thanks for the assist..

I turned on server authentication in email client..I should have thought of that...

sad to report that makes no difference... The client says it connects and just sits there...never pulls email..

Here is the tail of the mail log

Sep 19 12:15:11 tweety postfix/smtp[5147]: 120CC2E1B3: to=<centechadmin@centechcomputers.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=13, delays=0.38/0/0.02/12,$
Sep 19 12:15:11 tweety postfix/qmgr[4949]: 120CC2E1B3: removed
Sep 19 12:15:11 tweety postfix/virtual[5170]: 6D52D2E295: to=<centechadmin@centechcomputers.com>, relay=virtual, delay=0.31, delays=0.11/0.05/0/0.14, dsn=2.0.0, $
Sep 19 12:15:11 tweety postfix/qmgr[4949]: 6D52D2E295: removed
Sep 19 12:17:00 tweety pop3d: Disconnected, ip=[::ffff:65.15.185.108]
Sep 19 12:17:09 tweety pop3d: Connection, ip=[::ffff:65.15.185.108]
Sep 19 12:18:19 tweety postfix/anvil[5159]: statistics: max connection rate 1/60s for (smtp:66.245.177.160) at Sep 19 12:14:58
Sep 19 12:18:19 tweety postfix/anvil[5159]: statistics: max connection count 1 for (smtp:66.245.177.160) at Sep 19 12:14:58
Sep 19 12:18:19 tweety postfix/anvil[5159]: statistics: max cache size 1 at Sep 19 12:14:58
Sep 19 12:20:58 tweety pop3d: Disconnected, ip=[::ffff:65.15.185.108]
Sep 19 12:21:06 tweety pop3d: Connection, ip=[::ffff:65.15.185.108]

It seems to connect then disconnect....To be fair I am NOT the worlds greatest at figuring out what logs are telling you...

I also broke my Squirrelmail install somehow playing around...Back to square one on that...

Any ideas on this POP thing???

Karl
Reply With Quote
  #10  
Old 19th September 2008, 20:25
kdomrose kdomrose is offline
Junior Member
 
Join Date: Sep 2008
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default fixed squirrelmail

got it fixed...just a setting in the config file for squirrelmail.

Now back after the postfix issue...

Karl
Reply With Quote
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
Problem with new CENTOS 5.1 / POSTFIX installation can Server Operation 1 7th March 2008 23:10
ISPConfig DNS and virtual host configuration tips and problem Ripper Installation/Configuration 6 26th June 2007 00:29
Postfix Configuration Problem Shahryar Installation/Configuration 1 8th December 2006 15:19
Main.cf postfix garbled due to previous configuration BčrKessels Installation/Configuration 1 14th November 2006 09:56
Postfix Installation and Configuration akomaoako2k Installation/Configuration 1 31st July 2006 09:08


All times are GMT +2. The time now is 16:24.


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