Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 23rd June 2008, 12:45
FeraTechInc FeraTechInc is offline
Senior Member
 
Join Date: Feb 2007
Posts: 136
Thanks: 3
Thanked 5 Times in 5 Posts
Default Server rejects all mail.

Ok so I just figured out that my server is rejecting all my mail!
I have the Ubuntu Perfect Server Setup for Hardy Heron.
ISPConfig Version: 2.2.23

These are the errors I get:
Code:
Jun 23 05:32:25 feraserver postfix/smtpd[15392]: NOQUEUE: reject: RCPT from rv-out-0506.google.com[209.85.198.229]: 554 5.7.1 <contact@feratechinc.com>: Relay access denied; from=<stolorz+gmcfv48202d65971ef590@gmail.com> to=<contact@feratechinc.com> proto=ESMTP helo=<rv-out-0506.google.com>
I tried changing /etc/postfix/main.cf

I added:
virtual_maps = hash:/etc/postfix/virtusertable
Changed this from "feraserver.com, localhost.feraserver.com, localhost.localdomain, localhost" to:
mydestination = /etc/postfix/local-host-names

This allowed the mail to come in but then bounced because mailbox was full. It was saying that the mailbox had 0bytes of space.

Please help. We would even be willing to pay for services.
Reply With Quote
Sponsored Links
  #2  
Old 23rd June 2008, 17:24
FeraTechInc FeraTechInc is offline
Senior Member
 
Join Date: Feb 2007
Posts: 136
Thanks: 3
Thanked 5 Times in 5 Posts
Default

Output of my main.cf:

Code:
# See /usr/share/postfix/main.cf.dist for a commented, more complete version


# 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 (Ubuntu)
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 = feraserver.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = feraserver.com, localhost.feraserver.com, localhost.localdomain, localhost
relayhost =
mynetworks = 127.0.0.0/8
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
Reply With Quote
  #3  
Old 23rd June 2008, 20:43
FeraTechInc FeraTechInc is offline
Senior Member
 
Join Date: Feb 2007
Posts: 136
Thanks: 3
Thanked 5 Times in 5 Posts
Default

Fixed:

This took me over 4 hours to figure out. The problem was that going through the perfect setup I simply copied over the postfix "main.cf" However, the following needed to be added at the end:

mydestination = /etc/postfix/local-host-names
home_mailbox = Maildir/
virtual_maps = hash:/etc/postfix/virtusertable

Also, the mail accounts that were getting mailbox full errors had to be deleted and created again through the ISPConfig control panel.

Last edited by FeraTechInc; 23rd June 2008 at 20:49.
Reply With Quote
The Following User Says Thank You to FeraTechInc For This Useful Post:
4walters (8th July 2008)
  #4  
Old 24th June 2008, 17:24
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 FeraTechInc View Post
This took me over 4 hours to figure out. The problem was that going through the perfect setup I simply copied over the postfix "main.cf" However, the following needed to be added at the end:

mydestination = /etc/postfix/local-host-names
home_mailbox = Maildir/
virtual_maps = hash:/etc/postfix/virtusertable
This is usually added by the ISPConfig installer, so I guess you copied the main.cf from the tutorial after the ISPConfig installation?
__________________
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
  #5  
Old 24th June 2008, 17:49
FeraTechInc FeraTechInc is offline
Senior Member
 
Join Date: Feb 2007
Posts: 136
Thanks: 3
Thanked 5 Times in 5 Posts
 
Default

Yes, I most certainly did...
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
Postfix & mail forwarding loop varnik Server Operation 21 9th December 2008 15:13
Would the problem come from postfix? satimis Server Operation 10 27th January 2008 10:31
Server name change stops webmail working shajazzi Installation/Configuration 3 16th May 2006 16:00
Webmail Relay Error palkat General 17 23rd April 2006 18:12
Mail server jas_esp Server Operation 1 7th December 2005 18:17


All times are GMT +2. The time now is 17:33.


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