Relaying

This is a discussion on Relaying within the alt.comp.mail.postfix forums, part of the Mail Servers and Related category; Here my /etc/postfix/main.cf # Debian specific: Specifying a file name will cause the first # line of that file ...


Go Back   Usenet Forums > Mail Servers and Related > alt.comp.mail.postfix

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-18-2007
Juerg Schwarz
 
Posts: n/a
Default Relaying

Here my /etc/postfix/main.cf

# Debian specific: Specifying a file name will cause the first
# line of that file to be used as the name. The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname

smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
setgrid_group = postdrop
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

myhostname = web4you-gmbh.ch
mynetworks = 192.68.10.0/24, 127.0.0.0/8
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases



# TLS parameters
#smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
#smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
#smtpd_use_tls=yes
#smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache
#smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache

# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.

smtp_helo_required = yes
smtp_client_restrictions = reject_maps.rbl
smtp_helo_restrictions = reject_invalid_hostname,
reject_unknown_hostname,
reject_non_fqdn_hostname

smtpd_sender_restrictions = reject_unknown_sender_domain,
reject_non_fqdn_sender,
reject_rhsbl_sender dsn.rfc-ignorant.org,
permit_mynetworks,
check_sender_access hash:/etc/postfix/access,
check_client_access hash:/etc/postfix/access

smtpd_recipient_restrictions = permit_mynetworks,
reject_unauth_destination,
reject_invalid_hostname,
reject_unknown_hostname,
reject_non_fqdn_sender,
reject_unknown_sender_domain,
reject_non_fqdn_recipient,
reject_unknown_recipient_domain,
check_sender_access hash:/etc/postfix/access,
check_recipient_access hash:/etc/postfix/access,
reject_rbl_client relays.ordb.org,
reject_rbl_client cbl.abuseat.org,
reject_rbl_client list.dsbl.org,
reject_rbl_client sbl.spamhaus.org,
reject_rbl_client dnsbl.antispam.or.id,
reject_rhsbl_client blackhole.securitysage.com,
reject_rhsbl_sender blackhole.securitysage.com,
reject_rhsbl_sender dsn.rfc-ignorant.org,
reject_unverified_sender,

maps_rbl_domains = relays.osirusoft.com,
blackholes.mail-abuse.org,
rbl-plus.mail-abuse.org,
bl.spamcop.net


myorigin = /etc/mailname
mydestination = mail.web4you-gmbh.ch, home.web4you-gmbh.ch,
web4you-gmbh.ch, zarafa-desktop, localhost.localdomain, localhost
relayhost =
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
#mailbox_command = /usr/bin/zarafa-dagent "$USER"
mailbox_command = /usr/bin/procmail -a "$USER"

----------------------------end

and here some log entry's

Jul 18 15:11:03 localhost postfix/smtpd[25223]: connect from
253.7.99-84.rev.gaoland.net[84.99.7.253]
Jul 18 15:11:05 localhost postfix/smtpd[25223]: warning:
253.7.99.84.relays.ordb.org: RBL lookup error: Host or domain name not
found. Name service error for name=253.7.99.84.relays.ordb.org type=A:
Host not found, try again
Jul 18 15:11:25 localhost postfix/smtpd[25223]: warning:
253.7.99.84.dnsbl.antispam.or.id: RBL lookup error: Host or domain name
not found. Name service error for name=253.7.99.84.dnsbl.antispam.or.id
type=A: Host not found, try again
Jul 18 15:11:25 localhost postfix/cleanup[25234]: 8B4ACE1A79:
message-id=<20070718131125.8B4ACE1A79@web4you-gmbh.ch>
Jul 18 15:11:25 localhost postfix/qmgr[4651]: 8B4ACE1A79:
from=<postmaster@web4you-gmbh.ch>, size=263, nrcpt=1 (queue active)
Jul 18 15:11:31 localhost postfix/smtpd[25223]: NOQUEUE: reject: RCPT
from 253.7.99-84.rev.gaoland.net[84.99.7.253]: 450
<juerg.schneider@wandfluh.com>: Sender address rejected: unverified
address: Address verification in progress;
from=<juerg.schneider@wandfluh.com> to=<juerg.schwarz@web4you-gmbh.ch>
proto=ESMTP helo=<253.7.99-84.rev.gaoland.net>
Jul 18 15:11:31 localhost postfix/smtpd[25223]: lost connection after
RCPT from 253.7.99-84.rev.gaoland.net[84.99.7.253]
Jul 18 15:11:31 localhost postfix/smtpd[25223]: disconnect from
253.7.99-84.rev.gaoland.net[84.99.7.253]
Jul 18 15:11:38 localhost postfix/smtp[25235]: 8B4ACE1A79:
to=<juerg.schneider@wandfluh.com>, relay=mail.wandfluh.com[62.2.114.38],
delay=13, status=deliverable (250 Ok)

-----------------END

This looks like an Email that was relayed over my postfix? How to stop
this? There are some more entrys like this.

Juerg
Reply With Quote
  #2 (permalink)  
Old 07-18-2007
Alexander Dalloz
 
Posts: n/a
Default Re: Relaying

Am Wed, 18 Jul 2007 15:39:42 +0200 schrieb Juerg Schwarz:

> Here my /etc/postfix/main.cf


If you feel the need to provide your setup details (often much helpful to
help), then please paste output of "postconf -n". This avoids that you
have typos or else in the main.cf which are not obvious.

> and here some log entry's
>
> Jul 18 15:11:03 localhost postfix/smtpd[25223]: connect from
> 253.7.99-84.rev.gaoland.net[84.99.7.253] Jul 18 15:11:05 localhost
> postfix/smtpd[25223]: warning: 253.7.99.84.relays.ordb.org: RBL lookup
> error: Host or domain name not found. Name service error for
> name=253.7.99.84.relays.ordb.org type=A: Host not found, try again
> Jul 18 15:11:25 localhost postfix/smtpd[25223]: warning:
> 253.7.99.84.dnsbl.antispam.or.id: RBL lookup error: Host or domain name
> not found. Name service error for name=253.7.99.84.dnsbl.antispam.or.id
> type=A: Host not found, try again
> Jul 18 15:11:25 localhost postfix/cleanup[25234]: 8B4ACE1A79:
> message-id=<20070718131125.8B4ACE1A79@web4you-gmbh.ch> Jul 18 15:11:25
> localhost postfix/qmgr[4651]: 8B4ACE1A79:
> from=<postmaster@web4you-gmbh.ch>, size=263, nrcpt=1 (queue active) Jul
> 18 15:11:31 localhost postfix/smtpd[25223]: NOQUEUE: reject: RCPT from
> 253.7.99-84.rev.gaoland.net[84.99.7.253]: 450
> <juerg.schneider@wandfluh.com>: Sender address rejected: unverified
> address: Address verification in progress;
> from=<juerg.schneider@wandfluh.com> to=<juerg.schwarz@web4you-gmbh.ch>
> proto=ESMTP helo=<253.7.99-84.rev.gaoland.net> Jul 18 15:11:31 localhost
> postfix/smtpd[25223]: lost connection after RCPT from
> 253.7.99-84.rev.gaoland.net[84.99.7.253] Jul 18 15:11:31 localhost
> postfix/smtpd[25223]: disconnect from
> 253.7.99-84.rev.gaoland.net[84.99.7.253] Jul 18 15:11:38 localhost
> postfix/smtp[25235]: 8B4ACE1A79: to=<juerg.schneider@wandfluh.com>,
> relay=mail.wandfluh.com[62.2.114.38], delay=13, status=deliverable (250
> Ok)
>
> -----------------END
>
> This looks like an Email that was relayed over my postfix? How to stop
> this? There are some more entrys like this.


How do you come to that conclusion? I do not share it at all.

The mail attempt was rejected temporarily:

> 18 15:11:31 localhost postfix/smtpd[25223]: NOQUEUE: reject: RCPT from
> 253.7.99-84.rev.gaoland.net[84.99.7.253]: 450
> <juerg.schneider@wandfluh.com>: Sender address rejected: unverified
> address: Address verification in progress;


Then the other side disconnected, though your sender address verification
finally detected that the sender address is deliverable.

Even if that mail would have been delivered (maybe the deliver part
follows below the pasted mail log part), then it would not be a relaying
to=<juerg.schwarz@web4you-gmbh.ch>, as the domain is a $mydestination.

> Juerg


Btw. it is now more than half a year, 7 months nearly, that
relays.ordb.org is _dead_ / taken out of business. Thus the error message
in your mail log.
And dnsbl.antispam.or.id, which I don't know (by name nor its policy)
seems to be unresponsive too.
Repair your RBL calls in smtpd_recipient_restrictions.

Cheers

Alexander
Reply With Quote
  #3 (permalink)  
Old 07-18-2007
Juerg Schwarz
 
Posts: n/a
Default Re: Relaying

Alexander Dalloz schrieb:
> Am Wed, 18 Jul 2007 15:39:42 +0200 schrieb Juerg Schwarz:
>
>> Here my /etc/postfix/main.cf

>
> If you feel the need to provide your setup details (often much helpful to
> help), then please paste output of "postconf -n". This avoids that you
> have typos or else in the main.cf which are not obvious.
>
>> and here some log entry's
>>
>> Jul 18 15:11:03 localhost postfix/smtpd[25223]: connect from
>> 253.7.99-84.rev.gaoland.net[84.99.7.253] Jul 18 15:11:05 localhost
>> postfix/smtpd[25223]: warning: 253.7.99.84.relays.ordb.org: RBL lookup
>> error: Host or domain name not found. Name service error for
>> name=253.7.99.84.relays.ordb.org type=A: Host not found, try again
>> Jul 18 15:11:25 localhost postfix/smtpd[25223]: warning:
>> 253.7.99.84.dnsbl.antispam.or.id: RBL lookup error: Host or domain name
>> not found. Name service error for name=253.7.99.84.dnsbl.antispam.or.id
>> type=A: Host not found, try again
>> Jul 18 15:11:25 localhost postfix/cleanup[25234]: 8B4ACE1A79:
>> message-id=<20070718131125.8B4ACE1A79@web4you-gmbh.ch> Jul 18 15:11:25
>> localhost postfix/qmgr[4651]: 8B4ACE1A79:
>> from=<postmaster@web4you-gmbh.ch>, size=263, nrcpt=1 (queue active) Jul
>> 18 15:11:31 localhost postfix/smtpd[25223]: NOQUEUE: reject: RCPT from
>> 253.7.99-84.rev.gaoland.net[84.99.7.253]: 450
>> <juerg.schneider@wandfluh.com>: Sender address rejected: unverified
>> address: Address verification in progress;
>> from=<juerg.schneider@wandfluh.com> to=<juerg.schwarz@web4you-gmbh.ch>
>> proto=ESMTP helo=<253.7.99-84.rev.gaoland.net> Jul 18 15:11:31 localhost
>> postfix/smtpd[25223]: lost connection after RCPT from
>> 253.7.99-84.rev.gaoland.net[84.99.7.253] Jul 18 15:11:31 localhost
>> postfix/smtpd[25223]: disconnect from
>> 253.7.99-84.rev.gaoland.net[84.99.7.253] Jul 18 15:11:38 localhost
>> postfix/smtp[25235]: 8B4ACE1A79: to=<juerg.schneider@wandfluh.com>,
>> relay=mail.wandfluh.com[62.2.114.38], delay=13, status=deliverable (250
>> Ok)
>>
>> -----------------END
>>
>> This looks like an Email that was relayed over my postfix? How to stop
>> this? There are some more entrys like this.

>
> How do you come to that conclusion? I do not share it at all.
>
> The mail attempt was rejected temporarily:
>
>> 18 15:11:31 localhost postfix/smtpd[25223]: NOQUEUE: reject: RCPT from
>> 253.7.99-84.rev.gaoland.net[84.99.7.253]: 450
>> <juerg.schneider@wandfluh.com>: Sender address rejected: unverified
>> address: Address verification in progress;

>
> Then the other side disconnected, though your sender address verification
> finally detected that the sender address is deliverable.
>
> Even if that mail would have been delivered (maybe the deliver part
> follows below the pasted mail log part), then it would not be a relaying
> to=<juerg.schwarz@web4you-gmbh.ch>, as the domain is a $mydestination.
>
>> Juerg

>
> Btw. it is now more than half a year, 7 months nearly, that
> relays.ordb.org is _dead_ / taken out of business. Thus the error message
> in your mail log.
> And dnsbl.antispam.or.id, which I don't know (by name nor its policy)
> seems to be unresponsive too.
> Repair your RBL calls in smtpd_recipient_restrictions.
>
> Cheers
>
> Alexander


Tnx. It was the last line (exactly the status=deliv....OK)

postfix/smtp[25235]: 8B4ACE1A79: to=<juerg.schneider@wandfluh.com>,
> relay=mail.wandfluh.com[62.2.114.38], delay=13, status=deliverable

(250 Ok

that was my conclusion.

Juerg
Reply With Quote
  #4 (permalink)  
Old 07-18-2007
Alexander Dalloz
 
Posts: n/a
Default Re: Relaying

Am Wed, 18 Jul 2007 16:43:46 +0200 schrieb Juerg Schwarz:

> Tnx. It was the last line (exactly the status=deliv....OK)
>
> postfix/smtp[25235]: 8B4ACE1A79: to=<juerg.schneider@wandfluh.com>,
> > relay=mail.wandfluh.com[62.2.114.38], delay=13, status=deliverable

> (250 Ok
>
> that was my conclusion.
>
> Juerg


Hope you now see that

>> postfix/smtp[25235]: 8B4ACE1A79: to=<juerg.schneider@wandfluh.com>,
>> relay=mail.wandfluh.com[62.2.114.38], delay=13, status=deliverable (250
>> Ok)


just means that the sender address verification of your postfix found,
that juerg.schneider@wandfluh.com is a valid, deliverable address on
mail.wandfluh.com.

Alexander
Reply With Quote
Reply


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

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:25 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0