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 11th April 2009, 09:40
karazy-k karazy-k is offline
Junior Member
 
Join Date: Apr 2009
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default with ISPConfig, Postfix, and Courier, mail does not send or receive

Hello,

Thank you in advance for your help. I have recently followed Falko's perfect setup for a Debian box running ISPConfig. The install went smoothly (a great help btw) and I am hosting several sites already! However I cannot figure out how to get mail working for the websites' users.

I have installed the roundcube package using ISPConfig's update utility. That seems to work fine. As I understand it, roundcube is only a visual interface to postfix and courier and would not be responsible for mail difficulties per se. I can login using any user name and password I create in the ISPConfig site manager. I can navigate all the menus in roundcube fine, but cannot send or receive email at all.

If I send an email, roundcube splashes a notice saying it sent successfully, but it never reaches its destination. Any email sent to the address results in an error 550, the recipient is not accepted.

Fishing around these forums I have found many threads dealing with this issue, as it appears to be a common one. I could not find a solution on my own however, so I hope someone on this forum can guide me through it.

The most indepth trouble shooting I've done is running 'tail -f /var/log/mail.log'. I see that I login and logout of the imapd server almost every minute. No other information is displayed when I try to send or receive a mail.

As an aside, I am using Putty to connect to my server and do not know how to copy information displayed in that window into another to share, e.g. to share netstat -tap results. Does anyone know a way to do this?

-K
Reply With Quote
Sponsored Links
  #2  
Old 12th April 2009, 10:11
karazy-k karazy-k is offline
Junior Member
 
Join Date: Apr 2009
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I began going through the perfect setup for ISPConfig 2 on Debian by Falko. I followed the instruction line for line again for Postfix installation. Then, at the end, to test it was all working, Falko says enter "telnet localhost 25". I do and I do not get results that match what I should get. Here is what I get.

Quote:
ehlo localhost
250-kyleserver1.kylekarhohs.me Hello localhost [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-EXPN
250-VERB
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-AUTH DIGEST-MD5 CRAM-MD5
250-DELIVERBY
250 HELP
quit
221 2.0.0 kyleserver1.kylekarhohs.me closing connection
Connection closed by foreign host.
I guess I am missing 250-STARTTLS and 250-AUTH LOGIN PLAIN

What does this mean?
Reply With Quote
  #3  
Old 12th April 2009, 15:25
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,749 Times in 2,579 Posts
Default

Quote:
Originally Posted by karazy-k View Post
As an aside, I am using Putty to connect to my server and do not know how to copy information displayed in that window into another to share, e.g. to share netstat -tap results. Does anyone know a way to do this?

-K
You can simply mark text in PuTTy, and it's in your clipboard.

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
  #4  
Old 12th April 2009, 18:01
karazy-k karazy-k is offline
Junior Member
 
Join Date: Apr 2009
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Here is what I find in /etc/postfix/main.cf

Code:

# Debian specific:  Specifying a file name will cause the first
# line of that file to be used as the name.  The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname

smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

readme_directory = no

# TLS parameters
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
smtpd_use_tls = yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache

# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.

myhostname = kyleserver1.kylekarhohs.me
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
#mydestination = kyleserver1.kylekarhohs.me, localhost.kylekarhohs.me, localhost.localdomain, localhost
relayhost =
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = all
smtpd_sasl_local_domain =
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_sasl_authenticated_header = yes
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination
smtpd_tls_auth_only = no
smtp_use_tls = yes
smtp_tls_note_starttls_offer = yes
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

virtual_maps = hash:/etc/postfix/virtusertable

mydestination = kyleserver1.kylekarhohs.me, localhost.kylekarhohs.me,localhost.localdomain,localhost

Thanks. -K
Reply With Quote
  #5  
Old 13th April 2009, 18:05
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,749 Times in 2,579 Posts
Default

Please run
Code:
postconf -e 'mydestination = /etc/postfix/local-host-names'
/etc/init.d/postfix restart
What does telnet show then?
__________________
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
  #6  
Old 13th April 2009, 20:01
karazy-k karazy-k is offline
Junior Member
 
Join Date: Apr 2009
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Here are the new results from telnet
Code:

ehlo localhost
250-kyleserver1.kylekarhohs.me Hello localhost [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-EXPN
250-VERB
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-AUTH DIGEST-MD5 CRAM-MD5
250-DELIVERBY
250 HELP
quit
221 2.0.0 kyleserver1.kylekarhohs.me closing connection
Connection closed by foreign host.

I also confirmed that the /etc/postfix/main.cf file had been edited properly, it had. Thank you for your assistance. Your advice is still helpful, for looking at /etc/postfix/local-host-names I found

Code:

###################################
#
# ISPConfig local-host-names Configuration File
#         Version 1.0
#
###################################
localhost
kyleserver1.kylekarhohs.me
localhost.kyleserver1.kylekarhohs.me
localhost.kylekarhohs.me
localhost.localdomain
www.melonquark.net
www.kylekarhohs.me
www.kaylagbmfoundation.org
melonquark.net
kylekarhohs.me
kitchenriot.net
kaylagbmfoundation.org
mail.kylekarhohs.me
#### MAKE MANUAL ENTRIES BELOW THIS LINE! ####

I recognize these as the domains I am hosting. It would appear ISPConfig writes to this file automatically. Nothing is entered below the manual entries comment. Thank you for all your help to this point, but it appears there are still issues. I hope you can assist further.

-K

Last edited by karazy-k; 13th April 2009 at 20:12.
Reply With Quote
  #7  
Old 14th April 2009, 14:31
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,749 Times in 2,579 Posts
Default

What's the output of
Code:
netstat -tap
? I tend to think that maybe Sendmail is running instead of 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
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
just the last step...and it works. Postfix...need help config. ubuntusr Installation/Configuration 1 5th January 2009 10:50
Virtual Users And Domains With Postfix, Courier And MySQL Radukn HOWTO-Related Questions 14 12th October 2008 18:10
Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail (Ubuntu 8.04 mtzcesar HOWTO-Related Questions 3 1st June 2008 11:57
postfix +send a mail for limit quota mopsos Server Operation 6 20th March 2007 20:24
Issues with Postfix using "Virtual Users And Domains With Postfix, Courier And MySQL" Kyse HOWTO-Related Questions 15 6th January 2007 16:35


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


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