#1  
Old 5th March 2010, 10:45
indecipherable indecipherable is offline
Junior Member
 
Join Date: Mar 2010
Location: Ontario, Canada
Posts: 14
Thanks: 4
Thanked 0 Times in 0 Posts
Default Mail setup issue

Hello;
I'm running Debian Lenny.
I want to setup e-mail for my server.
I followed this page of this guide:
http://www.howtoforge.com/perfect-se...-ispconfig2-p4

However, When I telnet to localhost on port 25 and then type ehlo localhost
I receive no messages although it does appear to connect fine.

(side note)
In bind my hostname is set to mydomain.com and hostname as well as hostname -f show mydomain.com but I want my mail to be mail.mydomain.com
(/side note)

Do I need to set an MX record? If so, where? I run my own nameservers.

Is there a way I can troubleshoot this issue without uninstalling the apts, I cant risk jeopardizing my apache install.
Any help would be great.

Thank you,
Indecipherable
Reply With Quote
Sponsored Links
  #2  
Old 6th March 2010, 12:53
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,752 Times in 2,582 Posts
Default

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
The Following User Says Thank You to falko For This Useful Post:
indecipherable (9th March 2010)
  #3  
Old 7th March 2010, 21:32
indecipherable indecipherable is offline
Junior Member
 
Join Date: Mar 2010
Location: Ontario, Canada
Posts: 14
Thanks: 4
Thanked 0 Times in 0 Posts
Default Mail error

I didn't even know that a mail log exists but the mail error and log files seem to be excessively repeating this:

Mar 7 06:26:12 mydomain postfix/cleanup[1564]: fatal: open database {MTA_VIRTUAL_ALIAS_HASH}.db: No such file or directory
Mar 7 06:26:13 mydomain postfix/smtpd[1570]: fatal: open database {MTA_LOCAL_ALIAS_HASH}.db: No such file or directory
Mar 7 06:26:40 mydomain postfix/pickup[28903]: fatal: watchdog timeout


Do you know how to fix this issue?


Thanks again for the help
Reply With Quote
  #4  
Old 8th March 2010, 14:23
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,752 Times in 2,582 Posts
Default

What's in /etc/postfix/main.cf?
__________________
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:
indecipherable (9th March 2010)
  #5  
Old 9th March 2010, 03:52
indecipherable indecipherable is offline
Junior Member
 
Join Date: Mar 2010
Location: Ontario, Canada
Posts: 14
Thanks: 4
Thanked 0 Times in 0 Posts
Default contents of main.cf

Contents of main.cf

Code:
#
# Postfix MTA Manager Main Configuration File;
#
# Please do NOT edit this file manually;
#

#
# Postfix directory settings; These are critical for normal Postfix MTA functionallity;
#

command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
program_directory = /usr/lib/postfix

#
# Some common configuration parameters;
#

inet_interfaces = all
mynetworks_style = host

myhostname = mail.mydomain.net
myorigin = /etc/mailname

smtpd_banner = $myhostname VHCS2 {MTA_VERSION} Managed ESMTP {MTA_HOST_TYPE}
setgid_group = postdrop

#
# Receiving messages parameters;
#

mydestination = mail.mydomain.net, localhost, localhost.mydomain.net
append_dot_mydomain = no
append_at_myorigin = yes
local_transport = local
virtual_transport = virtual
transport_maps = hash:{MTA_TRANSPORT_HASH}

#
# Delivering local messages parameters;
#

mail_spool_directory = {MTA_LOCAL_MAIL_DIR}
# Mailboxquota
# => 0 for unlimited
# => 104857600 for 100 MB
mailbox_size_limit = 0
mailbox_command = 

biff = no

alias_database = /alias/alias.db

local_destination_recipient_limit = 1
local_recipient_maps = unix:passwd.byname $alias_database

#
# VHCS Autoresponder parameters;
#

vhcs2-arpl_destination_recipient_limit = 1

#
# Delivering virtual messages parameters;
#

virtual_mailbox_base = {MTA_VIRTUAL_MAIL_DIR}
virtual_mailbox_limit = 0

virtual_mailbox_domains = hash:{MTA_VIRTUAL_DMN_HASH}
virtual_mailbox_maps = hash:{MTA_VIRTUAL_MAILBOX_HASH}

virtual_alias_maps = hash:{MTA_VIRTUAL_ALIAS_HASH}

virtual_minimum_uid = {MTA_MAILBOX_MIN_UID}
virtual_uid_maps = static:{MTA_MAILBOX_UID}
virtual_gid_maps = static:{MTA_MAILBOX_GID}

#
# SASL paramters;
#

smtpd_sasl_auth_enable = yes
smtpd_sasl2_auth_enable = yes
smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain = 
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination

#
# TLS parameters; activate, if avaible/used
#

#smtpd_tld_loglevel = 2
#smtpd_tls_cert_file = /etc/postfix/cert.pem
#smtpd_tls_key_file = /etc/postfix/privkey.pem
#smtpd_use_tls = yes
#smtpd_tls_auth_only = no
#smtpd_tls_received_header = yes


#
# AMaViS parameters; activate, if avaible/used
#

#content_filter = amavis:[127.0.0.1]:10024

#
# Quota support; activate, if avaible/used
#

#virtual_create_maildirsize = yes
#virtual_mailbox_extended = yes
#virtual_mailbox_limit_maps = mysql:/etc/postfix/mysql_virtual_mailbox_limit_maps.cf
#virtual_mailbox_limit_override = yes
#virtual_maildir_limit_message = "The user you're trying to reach is over mailbox quota."
#virtual_overquota_bounce = yes
relayhost = 
mynetworks =  127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
recipient_delimiter = +
inet_protocols = all
smtpd_sasl_authenticated_header = yes
smtpd_tls_auth_only = no
smtp_use_tls = yes
smtpd_use_tls = yes
smtp_tls_note_starttls_offer = yes
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom
home_mailbox = Maildir/

Once again thank you for the help
Reply With Quote
  #6  
Old 9th March 2010, 16:56
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,752 Times in 2,582 Posts
Default

Is http://www.howtoforge.com/perfect-se...-ispconfig2-p4 the only tutorial you used, or did you mix multiple tutorials?

Did you install ISPConfig 2 or 3?

Quote:
smtpd_banner = $myhostname VHCS2 {MTA_VERSION} Managed ESMTP {MTA_HOST_TYPE}
Looks as if you tried to install VHCS2 as well.
__________________
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 9th March 2010, 22:57
indecipherable indecipherable is offline
Junior Member
 
Join Date: Mar 2010
Location: Ontario, Canada
Posts: 14
Thanks: 4
Thanked 0 Times in 0 Posts
Default

Actually, I tried another tutorial more than six months ago and had become busy with work - so I was hoping there was a way I could start over without reinstalling my operating system or ruining my apache config/bind setup.

So to be honest, I'm not sure what I've done in the past but I did remove the postfix package with apt prior to doing the new tutorial in hopes it would allow me to begin from scratch..
Reply With Quote
  #8  
Old 9th March 2010, 22:58
indecipherable indecipherable is offline
Junior Member
 
Join Date: Mar 2010
Location: Ontario, Canada
Posts: 14
Thanks: 4
Thanked 0 Times in 0 Posts
Default

Also, with the debian tutorial I found here I didn't proceed to install ISPconfig, so I'm not sure either.
Reply With Quote
  #9  
Old 10th March 2010, 16:00
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,752 Times in 2,582 Posts
Default

Quote:
Originally Posted by indecipherable View Post
but I did remove the postfix package with apt prior to doing the new tutorial in hopes it would allow me to begin from scratch..
That didn't work out as your main.cf contains lots of placeholders (like {MTA_MAILBOX_MIN_UID}) that should probably have been replaced with actual values, probably by the VHCS2 installer or something like that. I suggest you set the system up from scratch.
__________________
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 12th March 2010, 05:34
indecipherable indecipherable is offline
Junior Member
 
Join Date: Mar 2010
Location: Ontario, Canada
Posts: 14
Thanks: 4
Thanked 0 Times in 0 Posts
 
Default

Ah sad panda, well - no real complaints. In the windows world, I'd format for less. at least here I get to learn. Thanks a ton for your help and i'll undoubtedly
be asking for it again soon.
Reply With Quote
Reply

Bookmarks

Tags
bind, debian lenny, mail, postfix, smtp

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
Catchall and Forwarding not working simmo General 6 22nd March 2014 01:54
Cannot send or receive mail farbrorc Installation/Configuration 6 24th January 2010 12:56
Mail Server Setup With Exim, MySQL, Cyrus-Imapd, Horde Webmail On Centos 5.1 - issue c0mrade HOWTO-Related Questions 25 19th April 2009 19:11
Postfix & mail forwarding loop varnik Server Operation 21 9th December 2008 16:13
Core 4: Error Messages on Fresh Install re CTX/SSL jjw Installation/Configuration 30 6th September 2006 13:16


All times are GMT +2. The time now is 18:34.


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