Re: Disabling checking for my own hostname in smtp connections to transports

2010-06-23 Thread Oguz Yilmaz
For the case, mail server is not necessarily a Postfix. Yes it is a
workaround to find different myhostname variable setting then hostname
of the real mail server.

 internet  -  postfix relay -mail server
 mail.mydomain.com mail.mydomain.com

However, this needs a control:
- new myhostname should resolv to the same IP and the IP to the same
myhostname for a best practice antispam configuration.
- The customer may not have any other hostname defined in the DNS.
So, those cases will need a control and will not work seamlessly.

I just wanted to ask If Is there a way to disable loops back to
myself errors in a case which is not actually a real loop back.

Thanks Mr. Venema.

Best Regards,


On Mon, Jun 21, 2010 at 3:20 PM, Wietse Venema wie...@porcupine.org wrote:
 Oguz Yilmaz:
 Hi,

 In some of my setups, I locate postfix as content filtering for smtp,
 and before the original mail server.

 internet - postfix relay - mail server

 In cases of myhostname=mail.mydomain.com and also the hostname of
 the mail server is mail.mydomain.com Postfix will give an error of
 greeted me with my own hostname and bounce the e-mail with loops
 back to myself. Actually this is not a real loopback case.

 Use different myhostname settings for different MTA instances.
 Each name should match the inet_interfaces setting of its MTA.

        Wietse



Disabling checking for my own hostname in smtp connections to transports

2010-06-21 Thread Oguz Yilmaz
Hi,

In some of my setups, I locate postfix as content filtering for smtp,
and before the original mail server.

internet - postfix relay - mail server

In cases of myhostname=mail.mydomain.com and also the hostname of
the mail server is mail.mydomain.com Postfix will give an error of
greeted me with my own hostname and bounce the e-mail with loops
back to myself. Actually this is not a real loopback case.

Is it possible to disable checking for the corresponding hostname of
the transport?

Best Regards,

Oguz Yilmaz




Postfix 2.2.11

warning: host 10.15.0.10[10.15.0.10] greeted me with my own hostname
mail.mydomain.com
warning: host 10.15.0.10[10.15.0.10] replied to HELO/EHLO with my own
hostname mail.mydomain.com
6E0E31C3AC7: to=t...@mydomain.com, relay=10.15.0.10[10.15.0.10],
delay=5, status=bounced (mail for 10.15.0.10 loops back to myself)


fallback_transport = maildrop
mydestination = localhost, localdomain, localhost.localdomain, $myhostname
mydomain = mydomain.com
myhostname = mail.mydomain.com
mynetworks = 127.0.0.1, 10.0.0.0/8
relay_domains = $mydestination, mydomain.com
smtp_host_lookup = native, dns
transport_maps = hash:/etc/postfix/transport


transport:
mydomain.com  smtp:10.15.0.10
.mydomain.com smtp:10.15.0.10


Re: errors from postfix

2010-04-15 Thread Oguz Yilmaz
Even if you solve quotes problem, postfix will deliver message to
olpcx@aol.com. Is this what you want?
You may try smtpname option of fetchmail to deliver to local mail user
on postfix server. Or if you do not change rcpt to, you may try to
deliver directly to mda with -m option.



On Fri, Apr 9, 2010 at 1:10 AM, John Schmitt nuon...@yahoo.com wrote:

 I use fetchmail to get my email from yahoo  gmail et al.  Lately I've been 
 getting these two messages when fetchmail runs.  What is postfix doing and 
 what is it trying to tell me?  Is this something I should fix on my end?  Is 
 postfix trying to resend some spam I received from yahoo?  Or is it just 
 having trouble delivering spam to my inbox?

 I'm running a simple home setup for myself using Fedora 12.

 Transcript of session follows.

  Out: 220 mymachine.mydomain.net ESMTP Postfix
  In:  HELO mymachine
  Out: 250 mymachine.mydomain.net
  In:  MAIL FROM:
  Out: 250 2.1.0 Ok
  In:  RCPT TO:???B?\ olpcxcqkkqc...@aol.com
  Out: 501 5.1.3 Bad recipient address syntax
  In:  QUIT
  Out: 221 2.0.0 Bye


 For other details, see the local mail logfile


 Date: Thu,  8 Apr 2010 13:02:01 -0700 (PDT)
 From: Mail Delivery System mailer-dae...@mymachine.mydomain.net
 To: Postmaster postmas...@mydomain.net
 Subject: Postfix SMTP server: errors from localhost[::1]

 Transcript of session follows.

  Out: 220 mymachine.mydomain.net ESMTP Postfix
  In:  EHLO pop-ssl.plus.mail.a06.yahoodns.net
  Out: 250-mymachine.mydomain.net
  Out: 250-PIPELINING
  Out: 250-SIZE
  Out: 250-VRFY
  Out: 250-ETRN
  Out: 250-STARTTLS
  Out: 250-ENHANCEDSTATUSCODES
  Out: 250-8BITMIME
  Out: 250 DSN
  In:  MAIL FROM:???B?\ olpcxcqkkqc...@aol.com BODY=8BITMIME SIZE=2131
  Out: 501 5.1.7 Bad sender address syntax
  In:  RSET
  Out: 250 2.0.0 Ok
  In:  QUIT
  Out: 221 2.0.0 Bye


 For other details, see the local mail logfile

 This is from /var/log/maillog:

 Apr  8 13:02:00 mymachine postfix/smtpd[13072]: connect from localhost[::1]
 Apr  8 13:02:00 mymachine postfix/smtpd[13000]: connect from localhost[::1]
 Apr  8 13:02:01 mymachine postfix/cleanup[13003]: 00144E02007: 
 message-id=20100408200201.00144e02...@mymachine.mydomain.net
 Apr  8 13:02:01 mymachine postfix/smtpd[13000]: disconnect from localhost[::1]
 Apr  8 13:02:01 mymachine postfix/qmgr[21590]: 00144E02007: 
 from=double-bou...@mymachine.mydomain.net, size=759, nrcpt=1 (queue active)
 Apr  8 13:02:01 mymachine lmtpunix[12930]: accepted connection
 Apr  8 13:02:01 mymachine lmtpunix[12930]: lmtp connection preauth'd as 
 postman
 Apr  8 13:02:01 mymachine lmtpunix[12930]: duplicate_check: 
 20100408200201.00144e02...@mymachine.mydomain.net user.john            0
 Apr  8 13:02:01 mymachine postfix/cleanup[13003]: 20E23E02009: 
 message-id=20100408200201.20e23e02...@mymachine.mydomain.net
 Apr  8 13:02:01 mymachine lmtpunix[12930]: duplicate_check: 
 20100408200201.00144e02...@mymachine.mydomain.net user.john            0
 Apr  8 13:02:01 mymachine postfix/qmgr[21590]: 20E23E02009: 
 from=double-bou...@mymachine.mydomain.net, size=957, nrcpt=1 (queue active)
 Apr  8 13:02:01 mymachine postfix/smtpd[13072]: disconnect from localhost[::1]
 Apr  8 13:02:01 mymachine lmtpunix[13071]: accepted connection
 Apr  8 13:02:01 mymachine lmtpunix[13071]: lmtp connection preauth'd as 
 postman
 Apr  8 13:02:01 mymachine lmtpunix[12930]: Delivered: 
 20100408200201.00144e02...@mymachine.mydomain.net to mailbox: user.john
 Apr  8 13:02:01 mymachine lmtpunix[12930]: mystore: starting txn 2147490480
 Apr  8 13:02:01 mymachine lmtpunix[12930]: mystore: committing txn 2147490480
 Apr  8 13:02:01 mymachine lmtpunix[12930]: duplicate_mark: 
 20100408200201.00144e02...@mymachine.mydomain.net user.john            
 1270756921 320038
 Apr  8 13:02:01 mymachine lmtpunix[12930]: mystore: starting txn 2147490481
 Apr  8 13:02:01 mymachine lmtpunix[12930]: mystore: committing txn 2147490481
 Apr  8 13:02:01 mymachine lmtpunix[12930]: duplicate_mark: 
 20100408200201.00144e02...@mymachine.mydomain.net .jo...@.sieve.       
 1270756921 0
 Apr  8 13:02:01 mymachine lmtpunix[13071]: duplicate_check: 
 20100408200201.20e23e02...@mymachine.mydomain.net user.john            0
 Apr  8 13:02:01 mymachine postfix/lmtp[13008]: 00144E02007: 
 to=j...@mydomain.net, orig_to=postmaster, 
 relay=mymachine.mydomain.net[/var/lib/imap/socket/lmtp], delay=0.42, 
 delays=0.06/0/0/0.35, dsn=2.1.5, status=sent (250 2.1.5 Ok)
 Apr  8 13:02:01 mymachine postfix/qmgr[21590]: 00144E02007: removed




RBL problems affect mail reception

2009-04-04 Thread Oguz Yilmaz
Hi,

On my postfix mail server I have RBL definitions at
smtpd_client_restrictions phase. At the moment 2 of 4 rbl's waiting until
tcp timeout without an answer when I try with nslookup. This affects my
clients. Also client programs are waiting for sending e-mail. Is there any
way to put some timeout or any other resoluton for the problem?

Regards,

Oguz Yilmaz

smtpd_client_restrictions =
 check_client_access hash:/etc/postfix/access,
 permit_sasl_authenticated,
 permit_mynetworks,
 reject_rbl_client dnsbl.sorbs.net,
 reject_rbl_client dnsbl.njabl.org,
 reject_rbl_client cbl.abuseat.org,
 reject_rbl_client bl.spamcop.net,
 permit