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.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 26th March 2010, 05:03
madelves madelves is offline
Junior Member
 
Join Date: Mar 2010
Posts: 10
Thanks: 1
Thanked 0 Times in 0 Posts
Default Postfix multiple problems, from 550, 554, Relay denied etc.. all in one server

Hello,

I'm starting to use ISPConfig and since setting it up i have some problems and have patched things here and there. I got a few problems especially using Postfix as an email MTA. I set up all domain using ISPconfig and redirect it to a single IP for everything. I followed some readings from the HOWTO from howtoforge to try to set up.

Problem is a bit weird because I have some email sent, some rejected, and some relay denied on the same server and using the same ispconfig...

Here's some log excerpts
Code:
[root@server1 postfix]# grep admin@domain1.com /var/log/maillog*
/var/log/maillog:Mar 25 23:25:08 server1 postfix/local[29662]: 00AB628C24: to=<sumber2009@server1.mydomain.com>, orig_to=<admin@domain1.com>, relay=local, delay=0.38, delays=0.29/0.01/0/0.08, dsn=2.0.0, status=sent (forwarded as 0FC7F28C2F)
/var/log/maillog:Mar 25 23:25:09 server1 postfix/smtp[29663]: 0FC7F28C2F: to=<myemail@gmail.com>, orig_to=<admin@domain1.com>, relay=gmail-smtp-in.l.google.com[209.85.221.100]:25, delay=1.8, delays=0.08/0.04/0.51/1.2, dsn=2.0.0, status=sent (250 2.0.0 OK 1269573909 39si551492qyk.23)
/var/log/maillog:Mar 25 23:37:15 server1 postfix/local[29982]: 8DF2428C2F: to=<sumber2009@server1.mydomain.com>, orig_to=<admin@domain1.com>, relay=local, delay=0.64, delays=0.59/0.01/0/0.05, dsn=2.0.0, status=sent (forwarded as A3FB728C30)
/var/log/maillog:Mar 25 23:37:18 server1 postfix/smtp[29983]:A3FB728C30: to=<myemail@gmail.com>, orig_to=<admin@domain1.com>, relay=alt1.gmail-smtp-in.l.google.com[209.85.229.27]:25, delay=2.8, delays=0.03/0.04/0.72/2, dsn=2.0.0, status=sent (250 2.0.0 OK 1269574638 y10si1259456bkx.47)
Now everything sent to domain 1 went in fine, they can receive, send, and forward.

However, i got a second email who sent this to gmail and I never received anything in the log :
Code:
Delivery to the following recipient failed permanently:

    user@domain2.com

Technical details of permanent failure:
Google tried to deliver your message, but it was rejected by the recipient domain. We recommend contacting the other email provider for further information about the cause of this error. The error that the other server returned was: 550 550-5.1.1 The email account that you tried to reach does not exist. Please try
550-5.1.1 double-checking the recipient's email address for typos or
550-5.1.1 unnecessary spaces. Learn more at
550 5.1.1 http://mail.google.com/support/bin/answer.py?answer=6596 27si409190yxe.119 (state 14).
Then there's number 3 who i sent email and behaves like so :

From google :
Code:
Delivery to the following recipient failed permanently:

    info@domain3.com

Technical details of permanent failure:
Google tried to deliver your message, but it was rejected by the recipient domain. We recommend contacting the other email provider for further information about the cause of this error. The error that the other server returned was: 554 554 5.7.1 <info@wellvast.com>: Recipient address rejected: Access denied (state 14).
The domain3 doesn't even show in my log

However there's domain4 who when I send email shows this in my log
Code:
/var/log/maillog:Mar 25 23:22:31 server1 postfix/smtpd[26343]: NOQUEUE: reject: RCPT from mail-vw0-f47.google.com[209.85.212.47]: 554 5.7.1 <username@domain4.com>: Relay access denied; from=<myemail@gmail.com> to=<username@domain4.com> proto=ESMTP helo=<mail-vw0-f47.google.com>
/var/log/maillog:Mar 25 23:23:43 server1 postfix/smtpd[29120]: NOQUEUE: reject: RCPT from mail-vw0-f47.google.com[209.85.212.47]: 554 5.7.1 <storeadmin@domain4.com>: Relay access denied; from=<myemail@gmail.com> to=<storeadmin@domain4.com> proto=ESMTP helo=<mail-vw0-f47.google.com>
/var/log/maillog:Mar 25 23:37:15 server1 postfix/smtpd[29966]: NOQUEUE: reject: RCPT from mail-gw0-f47.google.com[74.125.83.47]: 554 5.7.1 <storeadmin@domain4.com>: Relay access denied; from=<myemail@gmail.com> to=<storeadmin@domain4.com> proto=ESMTP helo=<mail-gw0-f47.google.com>
Please heeellpppp

anyways my postconf -n shows this

Code:
[root@server1 postfix]# /usr/sbin/postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
home_mailbox = Maildir/
html_directory = no
inet_interfaces = all
mail_owner = postfix
mailbox_command = 
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = /etc/postfix/local-host-names
mydomain = mydomain.com
myhostname = server1.mydomain.com
mynetworks = 127.0.0.0/8
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES
relay_domains = $mydestination
sample_directory = /usr/share/doc/postfix-2.3.3/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtp_tls_note_starttls_offer = yes
smtp_use_tls = yes
smtpd_delay_reject = yes
smtpd_helo_required = yes
smtpd_helo_restrictions = permit_mynetworks,    reject_non_fqdn_helo_hostname,    reject_invalid_helo_hostname,    permit
smtpd_recipient_restrictions = reject_unauth_pipelining,   reject_non_fqdn_recipient,   reject_unknown_recipient_domain,   permit_mynetworks,   reject_unauth_destination,   reject_rbl_client zen.spamhaus.org,   reject_rbl_client bl.spamcop.net,   permit
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = 
smtpd_sasl_security_options = noanonymous
smtpd_sender_restrictions = permit_mynetworks,    reject_non_fqdn_sender,    reject_unknown_sender_domain,    permit
smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtpd_tls_auth_only = no
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
smtpd_use_tls = yes
tls_random_source = dev:/dev/urandom
unknown_local_recipient_reject_code = 550
My head is about to explode. Please help out
Reply With Quote
Sponsored Links
 

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
Ubuntu Server, postfix, gmail relay sjau Server Operation 3 14th December 2010 18:20
amavis & ispconfig 3 yalex2000 Installation/Configuration 20 18th February 2010 17:02
Cannot send or receive mail farbrorc Installation/Configuration 6 24th January 2010 11:56
subdomain and mail relay configuration aranthorn Installation/Configuration 24 3rd September 2007 22:53
Centos 4.4 32bit Hangs, High Server load 3cwired_com Server Operation 11 16th November 2006 15:47


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


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