Send mail from Iphone BLOKED by spamhaus....

Hello guys,

I have the folowing problem:

I have a mac os x Server Leopard, that is hosting also mail service, I am using spamhaus list for filtering spam. Everything works fine, but when I try to send mail from my iPhone thru the 3g connection, not wireless, it gets blocked by spamhaus for the reason that my mobile internet provider has all his ip listed in spamhaus. I called Vodafone, my mobile service provider, and sead that the only solution they have is to add their ip to a whitelist on my server. Can anyone help me with some ansewer on how to add a range of ip in my server so that spamhaus will not BLOCK?

Thanks!

Mac Pro, MacBook Pro, Mac OS X (10.5.4), Leopard Server 10 Client, Leopard

Posted on Sep 4, 2009 8:59 AM

Reply
7 replies

Sep 4, 2009 9:32 AM in response to Georgemaxim

here are some logs:

Sep 4 19:28:31 macserver postfix/smtpd[817]: connect from unknown[213.233.64.xxx]
Sep 4 19:28:34 macserver postfix/smtpd[817]: NOQUEUE: reject: RCPT from unknown[213.233.64.xxx]: 554 5.7.1 Service unavailable; Client host [213.233.64.xxx] blocked using zen.spamhaus.org; http://www.spamhaus.org/query/bl?ip=213.233.64.xxx; from=<localuser@domain.com> to=<user@gmail.com> proto=ESMTP helo=<[10.81.2.98]>

Sep 15, 2009 5:41 AM in response to Andy Fragen

@Andy Fragen:
There should be no need to add IPs to your allowed relays. If authenticated users can not bypass the RBL check, then something is wrong with your configuration.
Also, adding dynamic IPs to your relays is dangerous. Tomorrow, somebody else is going to have that IP. Maybe with an infected PC which will be able to use your mail server as a spam relay,

Sep 15, 2009 8:11 AM in response to pterobyte

@pterobyte
Agreed. But I do have authentication for SMTP enabled. Yes, clearly I need to get rid of most of the items under 'mynetworks'.

postconf -n

command_directory = /usr/sbin
config_directory = /etc/postfix
content_filter = smtp-amavis:[127.0.0.1]:10024
daemon_directory = /usr/libexec/postfix
debug peerlevel = 2
enable serveroptions = yes
html_directory = no
inet_interfaces = all
mail_owner = _postfix
mailbox sizelimit = 0
mailbox_transport = cyrus
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
maps rbldomains =
message sizelimit = 12582912
mydestination = $myhostname,localhost.$mydomain,localhost,server.drfragen.private,drmcmedstaff. org,troop262ps.org,jannafragen.com
mydomain = server.drfragen.private
mydomain_fallback = localhost
myhostname = drfragen.com
mynetworks = 127.0.0.0/8,192.168.1.0/24,76.80.0.0/12,198.70.143.22,72.132.0.0/16,24.176.192. 0/20,98.144.0.0/13,66.214.80.0/20,72.22.128.0/19,69.73.192.0/18
newaliases_path = /usr/bin/newaliases
queue_directory = /private/var/spool/postfix
readme_directory = /usr/share/doc/postfix
sample_directory = /usr/share/doc/postfix/examples
sendmail_path = /usr/sbin/sendmail
setgid_group = _postdrop
smtpd clientrestrictions = permit_mynetworks reject rblclient zen.spamhaus.org permit
smtpd enforcetls = no
smtpd pw_server_securityoptions = cram-md5,plain,login
smtpd recipientrestrictions = permit sasl_authenticated,permit_mynetworks,reject_unauthdestination,permit
smtpd sasl_authenable = yes
smtpd tls_certfile = /etc/certificates/drfragen.com.crt
smtpd tls_keyfile = /etc/certificates/drfragen.com.key
smtpd use_pwserver = yes
smtpd usetls = yes
unknown local_recipient_rejectcode = 550
virtual mailboxdomains = hash:/etc/postfix/virtual_domains
virtual_transport = lmtp:unix:/var/imap/socket/lmtp

Any ideas?

Message was edited by: Andy Fragen

Sep 15, 2009 8:19 AM in response to Andy Fragen

Edit /etc/postfix/main.cf and change:

smtpd clientrestrictions = permit_mynetworks reject rblclient zen.spamhaus.org permit

to:

smtpd clientrestrictions =permit saslauthenticated permit_mynetworks reject rblclient zen.spamhaus.org permit

When done, save and issue:

sudo postfix reload

HTH,
Alex

P.S. Your configuration looks more like Leopard than Snow Leopard

Sep 15, 2009 10:10 AM in response to pterobyte

Thanks Alex. I've made the change and you're correct. I haven't made the jump to SL yet.

postconf -n
command_directory = /usr/sbin
config_directory = /etc/postfix
content_filter = smtp-amavis:[127.0.0.1]:10024
daemon_directory = /usr/libexec/postfix
debug peerlevel = 2
enable serveroptions = yes
html_directory = no
inet_interfaces = all
mail_owner = _postfix
mailbox sizelimit = 0
mailbox_transport = cyrus
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
maps rbldomains =
message sizelimit = 12582912
mydestination = $myhostname,localhost.$mydomain,localhost,server.drfragen.private,drmcmedstaff. org,troop262ps.org,jannafragen.com
mydomain = server.drfragen.private
mydomain_fallback = localhost
myhostname = drfragen.com
mynetworks = 127.0.0.0/8
newaliases_path = /usr/bin/newaliases
queue_directory = /private/var/spool/postfix
readme_directory = /usr/share/doc/postfix
sample_directory = /usr/share/doc/postfix/examples
sendmail_path = /usr/sbin/sendmail
setgid_group = _postdrop
smtpd clientrestrictions = permit saslauthenticated permit_mynetworks reject rblclient zen.spamhaus.org permit
smtpd enforcetls = no
smtpd pw_server_securityoptions = cram-md5,plain,login
smtpd recipientrestrictions = permit sasl_authenticated,permit_mynetworks,reject_unauthdestination,permit
smtpd sasl_authenable = yes
smtpd tls_certfile = /etc/certificates/drfragen.com.crt
smtpd tls_keyfile = /etc/certificates/drfragen.com.key
smtpd use_pwserver = yes
smtpd usetls = yes
unknown local_recipient_rejectcode = 550
virtual mailboxdomains = hash:/etc/postfix/virtual_domains
virtual_transport = lmtp:unix:/var/imap/socket/lmtp

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Send mail from Iphone BLOKED by spamhaus....

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.