11 Replies Latest reply: Dec 2, 2011 5:29 AM by scarab7
scarab7 Level 1 Level 1 (0 points)

I could send mail to @yahoo.com and @gmail.com and our local domain but could not send email to other domains.

 

Mail server is working fine on SLS before, after the upgrade to Lion Server, this problem persist.

 

when i send emails i got the ff error mail message:

 

<xyz@cplmg.com>: host smtp.cplmg.com[213.42.40.243] said: 501 5.5.4

   Syntax: RCPT To:<address> (in reply to RCPT TO command)

Reporting-MTA: dns; mail.4foxtech.com

X-Postfix-Queue-ID: 06196153926

X-Postfix-Sender: rfc822; info@4foxtech.com

Arrival-Date: Thu, 28 Jul 2011 00:24:38 +0800 (PHT)

 

Final-Recipient: rfc822; xyz@cplmg.com

Original-Recipient: rfc822;xyz@cplmg.com

Action: failed

Status: 5.5.4

Remote-MTA: dns; smtp.cplmg.com

Diagnostic-Code: smtp; 501 5.5.4 Syntax: RCPT To:<address>

 

 

here is the postconf -n

 

 

 

alias_maps = hash:/etc/aliases,hash:/var/mailman/data/aliases

always_bcc =

biff = no

command_directory = /usr/sbin

config_directory = /etc/postfix

content_filter = smtp-amavis:[127.0.0.1]:10024

daemon_directory = /usr/libexec/postfix

debug_peer_level = 2

enable_server_options = yes

header_checks = pcre:/etc/postfix/custom_header_checks

html_directory = /usr/share/doc/postfix/html

imap_submit_cred_file = /private/etc/postfix/submit.cred

inet_interfaces = all

inet_protocols = all

mail_owner = _postfix

mailbox_size_limit = 0

mailbox_transport = dovecot

mailq_path = /usr/bin/mailq

manpage_directory = /usr/share/man

maps_rbl_domains =

message_size_limit = 0

mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain

mydomain = 4foxtech.com

mydomain_fallback = localhost

myhostname = mail.4foxtech.com

mynetworks = 127.0.0.0/8,192.168.77.0/24

newaliases_path = /usr/bin/newaliases

owner_request_special = no

queue_directory = /private/var/spool/postfix

readme_directory = /usr/share/doc/postfix

recipient_canonical_maps = hash:/etc/postfix/system_user_maps

recipient_delimiter = +

relayhost =

sample_directory = /usr/share/doc/postfix/examples

sendmail_path = /usr/sbin/sendmail

setgid_group = _postdrop

smtp_sasl_auth_enable = no

smtp_sasl_password_maps =

smtpd_client_restrictions = permit_mynetworks permit_sasl_authenticated reject_rbl_client zen.spamhaus.org permit

smtpd_enforce_tls = no

smtpd_helo_required = yes

smtpd_helo_restrictions = reject_invalid_helo_hostname reject_non_fqdn_helo_hostname

smtpd_pw_server_security_options = cram-md5,gssapi

smtpd_recipient_restrictions = permit_sasl_authenticated permit_mynetworks  reject_unauth_destination check_policy_service unix:private/policy permit

smtpd_sasl_auth_enable = yes

smtpd_tls_CAfile = /etc/certificates/svr.4foxtech.com.B583EC1678E0925C252D34B2470D176AB1D9FF7A.cha in.pem

smtpd_tls_cert_file = /etc/certificates/svr.4foxtech.com.B583EC1678E0925C252D34B2470D176AB1D9FF7A.cer t.pem

smtpd_tls_exclude_ciphers = SSLv2, aNULL, ADH, eNULL

smtpd_tls_key_file = /etc/certificates/svr.4foxtech.com.B583EC1678E0925C252D34B2470D176AB1D9FF7A.key .pem

smtpd_tls_loglevel = 0

smtpd_use_pw_server = yes

smtpd_use_tls = yes

tls_random_source = dev:/dev/urandom

unknown_local_recipient_reject_code = 550

use_sacl_cache = yes

virtual_alias_maps =

 

your help will be very much appreciated!


Mac mini, Mac OS X (10.7)
  • 1. Re: I could not send mails to other domain except yahoo.com ,gmail.com and local domain
    scarab7 Level 1 Level 1 (0 points)

    any suggestions would be very much appreciated....

  • 2. Re: I could not send mails to other domain except yahoo.com ,gmail.com and local domain
    NeoNet Tim Level 1 Level 1 (0 points)

    Can you post what happens in mail.log when you attempt to send an email to one of the other unsuccessful domains?

  • 3. Re: I could not send mails to other domain except yahoo.com ,gmail.com and local domain
    scarab7 Level 1 Level 1 (0 points)

    Hi NeoNet Tim,

     

    Thanks for the reply.

     

    I tried sending to GMAIL, and to the failed domain, below is the extract from the SMTP log on server admin.

     

     

    Aug  5 08:40:20 svr postfix/smtpd[23200]: connect from unknown[192.168.77.107]

    Aug  5 08:40:20 svr postfix/smtpd[23200]: DF6C219086F: client=unknown[192.168.77.107], sasl_method=CRAM-MD5, sasl_username=me

    Aug  5 08:40:20 svr postfix/cleanup[23206]: DF6C219086F: message-id=<255C7932-E0B8-4209-B185-EA5CCFBAADF3@4foxtech.com>

    Aug  5 08:40:20 svr postfix/qmgr[23086]: DF6C219086F: from=<me@4foxtech.com>, size=563, nrcpt=1 (queue active)

    Aug  5 08:40:24 svr postfix/smtpd[23215]: connect from localhost[127.0.0.1]

    Aug  5 08:40:24 svr postfix/smtpd[23215]: 30E2E190881: client=localhost[127.0.0.1]

    Aug  5 08:40:24 svr postfix/cleanup[23206]: 30E2E190881: message-id=<255C7932-E0B8-4209-B185-EA5CCFBAADF3@4foxtech.com>

    Aug  5 08:40:24 svr postfix/smtpd[23215]: disconnect from localhost[127.0.0.1]

    Aug  5 08:40:24 svr postfix/qmgr[23086]: 30E2E190881: from=<me@4foxtech.com>, size=999, nrcpt=1 (queue active)

    Aug  5 08:40:24 svr postfix/smtp[23207]: DF6C219086F: to=<me@gmail.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=3.3, delays=0.06/0.01/0/3.3, dsn=2.0.0, status=sent (250 2.0.0 from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 30E2E190881)

    Aug  5 08:40:24 svr postfix/qmgr[23086]: DF6C219086F: removed

    Aug  5 08:40:39 svr postfix/smtp[23217]: 30E2E190881: to=<me@gmail.com>, relay=gmail-smtp-in.l.google.com[74.125.127.27]:25, delay=15, delays=0/0.01/9.5/5.6, dsn=2.0.0, status=sent (250 2.0.0 OK 1312504838 q8si7227710wfd.145)

    Aug  5 08:40:39 svr postfix/qmgr[23086]: 30E2E190881: removed

    Aug  5 08:40:41 svr postfix/smtpd[23200]: CD7A3190889: client=unknown[192.168.77.107], sasl_method=CRAM-MD5, sasl_username=me

    Aug  5 08:40:41 svr postfix/cleanup[23206]: CD7A3190889: message-id=<6DF31AEF-0F54-4290-A35C-8F72F38CF419@4foxtech.com>

    Aug  5 08:40:41 svr postfix/qmgr[23086]: CD7A3190889: from=<me@4foxtech.com>, size=563, nrcpt=1 (queue active)

    Aug  5 08:40:45 svr postfix/smtpd[23215]: connect from localhost[127.0.0.1]

    Aug  5 08:40:45 svr postfix/smtpd[23215]: A0C2B190898: client=localhost[127.0.0.1]

    Aug  5 08:40:45 svr postfix/cleanup[23206]: A0C2B190898: message-id=<6DF31AEF-0F54-4290-A35C-8F72F38CF419@4foxtech.com>

    Aug  5 08:40:45 svr postfix/smtpd[23215]: disconnect from localhost[127.0.0.1]

    Aug  5 08:40:45 svr postfix/qmgr[23086]: A0C2B190898: from=<me@4foxtech.com>, size=1007, nrcpt=1 (queue active)

    Aug  5 08:40:45 svr postfix/smtp[23207]: CD7A3190889: to=<ina@cplmg.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=3.8, delays=0.02/0/0/3.8, dsn=2.0.0, status=sent (250 2.0.0 from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as A0C2B190898)

    Aug  5 08:40:45 svr postfix/qmgr[23086]: CD7A3190889: removed

    Aug  5 08:41:15 svr postfix/anvil[23145]: statistics: max connection rate 2/60s for (smtpd:59.175.163.218) at Aug  5 08:37:48

    Aug  5 08:41:15 svr postfix/anvil[23145]: statistics: max connection count 1 for (smtpd:59.175.163.218) at Aug  5 08:37:40

    Aug  5 08:41:15 svr postfix/anvil[23145]: statistics: max cache size 1 at Aug  5 08:37:40

    Aug  5 08:41:18 svr postfix/smtp[23217]: A0C2B190898: host smtp1.cplmg.com[83.111.79.200] refused to talk to me: 421 Downstream server error

    Aug  5 08:41:23 svr postfix/smtp[23217]: A0C2B190898: to=<ina@cplmg.com>, relay=smtp.cplmg.com[213.42.40.243]:25, delay=38, delays=0/0/36/1.8, dsn=5.5.4, status=bounced (host smtp.cplmg.com[213.42.40.243] said: 501 5.5.4 Syntax: RCPT To:<address> (in reply to RCPT TO command))

    Aug  5 08:41:24 svr postfix/cleanup[23206]: 44C4F1908A3: message-id=<20110805004124.44C4F1908A3@mail.4foxtech.com>

    Aug  5 08:41:24 svr postfix/qmgr[23086]: 44C4F1908A3: from=<>, size=3008, nrcpt=1 (queue active)

    Aug  5 08:41:24 svr postfix/bounce[23231]: A0C2B190898: sender non-delivery notification: 44C4F1908A3

    Aug  5 08:41:24 svr postfix/qmgr[23086]: A0C2B190898: removed

    Aug  5 08:41:24 svr postfix/pipe[23233]: 44C4F1908A3: to=<me@4foxtech.com>, relay=dovecot, delay=0.18, delays=0/0.01/0/0.16, dsn=2.0.0, status=sent (delivered via dovecot service)

    Aug  5 08:41:24 svr postfix/qmgr[23086]: 44C4F1908A3: removed

    Aug  5 08:41:41 svr postfix/smtpd[23200]: disconnect from unknown[192.168.77.107]

  • 4. Re: I could not send mails to other domain except yahoo.com ,gmail.com and local domain
    NeoNet Tim Level 1 Level 1 (0 points)

    The only thing that seems obvious to me is the attempt to send to cplng.com was refused. I'd start by checking here http://www.mxtoolbox.com/blacklists.aspx to see if your ip is blacklisted for any reason.  Next would be to make sure your reverse dns entries match your server. Also do the somewhat obvious check that your emails are properly formatted, subject isn't blank, recipients email isn't mistyped or has invalid characters.

  • 5. Re: I could not send mails to other domain except yahoo.com ,gmail.com and local domain
    scarab7 Level 1 Level 1 (0 points)

    Hi Tim,

     

    I am not in the Blacklists.

     

    also the format is OK. but i got problem with reverse DNS, I am still negotiating with the ISP to create a reverse DNS for me.

     

    but now i got some more problem, all receive mails stays in the Queue, but will got forwarded to internal mailboxes when i will turn off the Virus and Spam mail filtering.

     

    Any idea, thanks a lot...

  • 6. Re: I could not send mails to other domain except yahoo.com ,gmail.com and local domain
    scarab7 Level 1 Level 1 (0 points)

    Hi,

     

    I tried the amavisd command and got the ff response: Any help?

     

    svr:~ 4fox_admin$ amavisd

    Error in config file "/etc/amavisd.conf": Can't open file /var/amavis/local_domains for reading: Permission denied at /usr/bin/amavisd line 2751.

    svr:~ 4fox_admin$

  • 7. Re: I could not send mails to other domain except yahoo.com ,gmail.com and local domain
    scarab7 Level 1 Level 1 (0 points)

    Hi Tim,

     

    My Reverse-DNS is now corrected but i still have the same error sending mails to private domail. Still sending mails to yahoo and google has no problems.

     

    Any Help please....

  • 8. Re: I could not send mails to other domain except yahoo.com ,gmail.com and local domain
    tArre Level 1 Level 1 (85 points)

    The "reverse ip" is also a requirement for mail servers, so good to have it.

     

    Can you paste here the returned mail?

    Usually, there comes the reason for the rejection written down.

     

    Another question is: are you using a dinamic-IP or home xDSL line?

     

    Hotmail use to reject all that kind of machines, let's say, the whole IP range from all Home ISP around the world...

    Gmail and Yahoo are more flexible with the "requirements for the remote mail server".

  • 9. Re: I could not send mails to other domain except yahoo.com ,gmail.com and local domain
    Antonio Rocco Level 6 Level 6 (10,190 points)

    Hi

     

    It appears your MX Record is a CNAME (alias) for svr.4foxtech.com.

     

    This is against the rules regarding MX Records. An MX Record must point to a host defined by an A Record. An MX Record cannot point to an IP Address. When querying DNS Records for your domain you have two MX Records listed with different priorities. If you're not planning on using a primary and a backup mail server (two distinct servers) then (a) what's the point? and (b) it would not work as both MX are for the same (single) server.

     

    I can telnet to your mail server on port 25 using two different hostnames - svr.4foxtech.com and mail.4foxtech.com. I can imagine some mail servers receiving email from your domain getting suspicious about the 'honesty/truth/validity' of your mail server? If you up the logging levels to Info (or even Debug - for a short while) you may see information regarding this when email is rejected and sent back to your mail server?

     

    Use Server Admin to change the logging levels. Stop the Service first, make the change and then start the Service again.

     

    Now none of the above may be root of your problem but it's certainly something else for you to eliminate.

     

    HTH?

     

    Tony

  • 10. Re: I could not send mails to other domain except yahoo.com ,gmail.com and local domain
    scarab7 Level 1 Level 1 (0 points)

    Hi @tArre,

     

    thank you for the reply.

     

    I am using a static IP.

     

    below are the remarks on the returned mail:

     

    <*.*@cplmg.com>: host smtp.cplmg.com[213.42.40.243] said: 501 5.5.4

       Syntax: RCPT To:<address> (in reply to RCPT TO command)

    Reporting-MTA: dns; mail.4foxtech.com

    X-Postfix-Queue-ID: EC8A9D1884

    X-Postfix-Sender: rfc822; *@4foxtech.com

    Arrival-Date: Fri,  2 Dec 2011 21:16:30 +0800 (PHT)

     

    Final-Recipient: rfc822; *.*@cplmg.com

    Original-Recipient: rfc822;*.*@cplmg.com

    Action: failed

    Status: 5.5.4

    Remote-MTA: dns; smtp.cplmg.com

    Diagnostic-Code: smtp; 501 5.5.4 Syntax: RCPT To:<address>

  • 11. Re: I could not send mails to other domain except yahoo.com ,gmail.com and local domain
    scarab7 Level 1 Level 1 (0 points)

    Hi Tony,

     

    Thank you for the reply.

     

    I am still a practicing System Administrator.

     

    I would appeciate if you could give me suggestion on what would i need to do with the conflict on mail.4foxtech.com and svr.4foxtech.com(Server)?

     

    svr.4foxtech.com is the hostname for the server.

     

    while mail.4foxtech.com is the hostname for the mail server which is installed on the same machine.

     

    it should also host www.4foxtech.com.

     

    Your suggestions would be highly appreciated.

     

    Thank you.