Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 5th November 2008, 12:32
terryoleary1981 terryoleary1981 is offline
Member
 
Join Date: Jan 2008
Posts: 91
Thanks: 3
Thanked 2 Times in 2 Posts
Default can receive emails but can't send

Hi

I've got an odd problem, I can receive emails without any problems but I'm not able to send emails to anyone from either outlook or via webmail. When I try to send an email I get the following error:

SMTP Error: Recipient not accepted. Verify your relay rules

I've looked through the forum and dug around my main.cfg but i cant see anything out of the ordinary. Below is my maillog... can anyone else suggest whats could be wrong? (i've replaced my domain name with mydomain in the example below)

Code:
Nov  5 11:22:52 mail postfix/smtpd[7979]: lost connection after RCPT from localhost.localdomain[::1]
Nov  5 11:22:52 mail postfix/smtpd[7979]: disconnect from localhost.localdomain[::1]
Nov  5 11:26:12 mail postfix/anvil[7982]: statistics: max connection rate 1/60s for (smtp:::1) at Nov  5 11
:22:52
Nov  5 11:26:12 mail postfix/anvil[7982]: statistics: max connection count 1 for (smtp:::1) at Nov  5 11:22
:52
Nov  5 11:26:12 mail postfix/anvil[7982]: statistics: max cache size 1 at Nov  5 11:22:52
Nov  5 11:27:33 mail postfix/smtpd[8973]: connect from localhost.localdomain[::1]
Nov  5 11:27:33 mail postfix/smtpd[8973]: NOQUEUE: reject: RCPT from localhost.localdomain[::1]: 554 5.7.1
<terry.oleary@gmail.com>: Relay access denied; from=<web23_terry@mydomain.co.uk> to=<terry.oleary@gmail.com
> proto=SMTP helo=<UebiMiau>
Nov  5 11:27:33 mail postfix/smtpd[8973]: lost connection after RCPT from localhost.localdomain[::1]
Nov  5 11:27:33 mail postfix/smtpd[8973]: disconnect from localhost.localdomain[::1]
Reply With Quote
Sponsored Links
  #2  
Old 6th November 2008, 13:22
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,745 Times in 2,578 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
  #3  
Old 6th November 2008, 13:37
terryoleary1981 terryoleary1981 is offline
Member
 
Join Date: Jan 2008
Posts: 91
Thanks: 3
Thanked 2 Times in 2 Posts
Default

here it is with comments/commented out stuff omitted

Code:
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
mail_owner = postfix
inet_interfaces = all
mydestination = $myhostname, localhost.$mydomain, localhost
unknown_local_recipient_reject_code = 550
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
debug_peer_level = 2
debugger_command =
	 PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
	 ddd $daemon_directory/$process_name $process_id & sleep 5
setgid_group = postdrop
html_directory = no
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/postfix-2.5.5/samples
readme_directory = /usr/share/doc/postfix-2.5.5/README_FILES
inet_protocols = all
smtpd_sasl_local_domain = 
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
stmpd_sasl_authenticated_header = yes
stmpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks,reject_unauth_destination
mynetworks = 127.0.0.0/8, 192.168.1.77/8
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_cert_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
myhostname = mail.spongecat.com
home_mailbox = Maildir/
mailbox_command = 

virtual_maps = hash:/etc/postfix/virtusertable

mydestination = /etc/postfix/local-host-names
append_at_myorigin = yes
append_dot_mydomain = yes
Reply With Quote
  #4  
Old 6th November 2008, 21:32
terryoleary1981 terryoleary1981 is offline
Member
 
Join Date: Jan 2008
Posts: 91
Thanks: 3
Thanked 2 Times in 2 Posts
Default

i've solved the problem, copied the main.cfg from my old (working server) a mis-spelling on one line and a few additions, all working fine... now i need to get the ftp service up and running!
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
I can send emails, but not receive adobe Installation/Configuration 7 25th June 2010 20:22
Postfix can send Emails - but cann't receive any ilchubby Server Operation 1 3rd February 2008 19:07
Can send but not receive emails (Ubuntu 7.10) chillifire Installation/Configuration 7 15th December 2007 21:35
Unable send receive emails vassilis3 Installation/Configuration 15 19th May 2007 14:34
I can't receive emails but send tom Installation/Configuration 21 13th April 2006 23:40


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


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