Relaying denied from localhost

This is a discussion on Relaying denied from localhost within the alt.comp.mail.postfix forums, part of the Mail Servers and Related category; Hi, i've installed avgate (a mail-virus scanner) into postfix (SuSE 8.1. Incoming mail is scanned and everything ...


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-09-2004
Klaus Dimde
 
Posts: n/a
Default Relaying denied from localhost

Hi,

i've installed avgate (a mail-virus scanner) into postfix (SuSE 8.1.
Incoming mail is scanned and everything is fine, but outgoing mail is
rejected.

Here's the mail.log:
------------------------ BEGINNING OF MAIL.LOG ---------------------------
postfix/smtpd[16801]: setting up TLS connection from
p5089F6E0.dip.t-dialin.net[80.137.246.224]

postfix/smtpd[16801]: TLS connection established from
p5089F6E0.dip.t-dialin.net[80.137.246.224]: SSLv3 with cipher RC4-MD5
(128/128 bits)

postfix/smtpd[16801]: connect from
p5089F6E0.dip.t-dialin.net[80.137.246.224]

smtpd[16801]: 1149B39810B:
client=p5089F6E0.dip.t-dialin.net[80.137.246.224], sasl_method=PLAIN,
sasl_username=kladim

postfix/cleanup[16802]: 1149B39810B:
message-id=<200407091041.50912.klaus@dimde.info>

postfix/qmgr[16667]: 1149B39810B: from=<klaus@dimde.info>, size=655, nrcpt=1
(queue active)

avgated[16805]: connection from localhost.localdomain

avgated[16805]: spooled to 16805-4525E2D7

avgatefwd[16806]: Message 'incoming/xf-16805-4525E2D7' scheduled for
scanning now.

avgatefwd[16806]: Virus Scanner will process message
'incoming/qf-16805-4525E2D7'.

postfix/smtp[16804]: 1149B39810B: to=<klaus.j.dimde@med.uni-giessen.de>,
relay=127.0.0.1[127.0.0.1], delay=0, status=sent (250 Mail accepted for
delivery (queued as 16805-4525E2D7).)

avgated[16805]: connection to localhost.localdomain closed

avgatefwd[16809]: Message 'outgoing/xf-16805-4525E2D7' scheduled for
delivery now.

postfix/smtpd[16810]: connect from localhost.localdomain[127.0.0.1]

smtpd[16801]: disconnect from p5089F6E0.dip.t-dialin.net[80.137.246.224]

postfix/smtpd[16810]: 4773A39810B: client=localhost.localdomain[127.0.0.1]

postfix/smtpd[16810]: reject: RCPT from localhost.localdomain[127.0.0.1]:
554 <klaus.j.dimde@med.uni-giessen.de>: Relay access denied;
from=<klaus@dimde.info> to=<klaus.j.dimde@med.uni-giessen.de>

postfix/smtpd[16810]: disconnect from localhost.localdomain[127.0.0.1]

postfix/smtpd[16810]: connect from localhost.localdomain[127.0.0.1]

postfix/smtpd[16810]: 4DB4439810B: client=localhost.localdomain[127.0.0.1]

postfix/cleanup[16802]: 4DB4439810B:
message-id=<20040709084150.4DB4439810B@p15097321.pureserve r.info>

postfix/qmgr[16667]: 4DB4439810B: from=<>, size=2328, nrcpt=1 (queue active)

avgatefwd[16809]: Message 'outgoing/df-16805-4525E2D7' successfully
forwarded (250 Ok: queued as 4DB4439810B)

postfix/smtpd[16810]: disconnect from localhost.localdomain[127.0.0.1]

avgatefwd[16809]: Mail bounced to klaus@dimde.info

postfix/local[16814]: 4DB4439810B: to=<kladim@localhost.localhost>,
relay=local, delay=0, status=sent (mailbox)
------------------------------ END OF MAIL.LOG ---------------------------

As far as I see, the avgated receives the mail from postfix, checks it at
passes it back to postfix via localhost. And this is denied...

the concerning part in master.cf:
[snip]
localhost:smtp-backdoor inet n - n - - smtpd -o content_filter=
[snip]

the interesting (i hope) part of main.cf:
myhostname = p15097321.pureserver.info
mydomain = localhost
myorigin = $mydomain
inet_interfaces = all
mydestination = $myhostname, localhost.$mydomain, $mydomain, smtp.$mydomain
mynetworks_style = host
mynetworks = 127.0.0.1/8, localhost
relay_domains = $mydestination
smtpd_sender_restrictions = hash:/etc/postfix/access
smtpd_client_restrictions =
strict_rfc821_envelopes = no
smtpd_recipient_restrictions =
permit_sasl_authenticated,reject_unauth_destinatio n, permit_mynetworks
content_filter = smtp:127.0.0.1:10024

with access:
localhost RELAY

What have I done wrong?

Thanks in advance

Klaus
Reply With Quote
  #2 (permalink)  
Old 07-09-2004
Markus Thiel
 
Posts: n/a
Default Re: Relaying denied from localhost

Hi,

You only allow relaying for these domain $myhostname, localhost.$mydomain,
$mydomain, smtp.$mydomain, that means
"p15097321.pureserver.info", "localhost.localhost", "localhost" and
"smtp.localhost".

> myhostname = p15097321.pureserver.info
> mydomain = localhost
> myorigin = $mydomain
> mydestination = $myhostname, localhost.$mydomain, $mydomain,

smtp.$mydomain

I haven't configured postfix for month now,
so maybe I'm wrong, but I think the relaying is rejected cause on the the
domains given here ("localdomain", "med.uni-giessen.de", "dimde.info") must
be listet in the "relay_domains" configuration.

> postfix/smtpd[16810]: reject: RCPT from localhost.localdomain[127.0.0.1]:
> 554 <klaus.j.dimde@med.uni-giessen.de>: Relay access denied;
> from=<klaus@dimde.info> to=<klaus.j.dimde@med.uni-giessen.de>


no guarantee that's the sulution....


"Klaus Dimde" <klaus.j.dimde@med.uni-giessen.de> schrieb im Newsbeitrag
news:cclmqo$eul$01$1@news.t-online.com...
> Hi,
>
> i've installed avgate (a mail-virus scanner) into postfix (SuSE 8.1.
> Incoming mail is scanned and everything is fine, but outgoing mail is
> rejected.
>
> Here's the mail.log:
> ------------------------ BEGINNING OF MAIL.LOG ---------------------------
> postfix/smtpd[16801]: setting up TLS connection from
> p5089F6E0.dip.t-dialin.net[80.137.246.224]
>
> postfix/smtpd[16801]: TLS connection established from
> p5089F6E0.dip.t-dialin.net[80.137.246.224]: SSLv3 with cipher RC4-MD5
> (128/128 bits)
>
> postfix/smtpd[16801]: connect from
> p5089F6E0.dip.t-dialin.net[80.137.246.224]
>
> smtpd[16801]: 1149B39810B:
> client=p5089F6E0.dip.t-dialin.net[80.137.246.224], sasl_method=PLAIN,
> sasl_username=kladim
>
> postfix/cleanup[16802]: 1149B39810B:
> message-id=<200407091041.50912.klaus@dimde.info>
>
> postfix/qmgr[16667]: 1149B39810B: from=<klaus@dimde.info>, size=655,

nrcpt=1
> (queue active)
>
> avgated[16805]: connection from localhost.localdomain
>
> avgated[16805]: spooled to 16805-4525E2D7
>
> avgatefwd[16806]: Message 'incoming/xf-16805-4525E2D7' scheduled for
> scanning now.
>
> avgatefwd[16806]: Virus Scanner will process message
> 'incoming/qf-16805-4525E2D7'.
>
> postfix/smtp[16804]: 1149B39810B: to=<klaus.j.dimde@med.uni-giessen.de>,
> relay=127.0.0.1[127.0.0.1], delay=0, status=sent (250 Mail accepted for
> delivery (queued as 16805-4525E2D7).)
>
> avgated[16805]: connection to localhost.localdomain closed
>
> avgatefwd[16809]: Message 'outgoing/xf-16805-4525E2D7' scheduled for
> delivery now.
>
> postfix/smtpd[16810]: connect from localhost.localdomain[127.0.0.1]
>
> smtpd[16801]: disconnect from p5089F6E0.dip.t-dialin.net[80.137.246.224]
>
> postfix/smtpd[16810]: 4773A39810B: client=localhost.localdomain[127.0.0.1]
>
> postfix/smtpd[16810]: reject: RCPT from localhost.localdomain[127.0.0.1]:
> 554 <klaus.j.dimde@med.uni-giessen.de>: Relay access denied;
> from=<klaus@dimde.info> to=<klaus.j.dimde@med.uni-giessen.de>
>
> postfix/smtpd[16810]: disconnect from localhost.localdomain[127.0.0.1]
>
> postfix/smtpd[16810]: connect from localhost.localdomain[127.0.0.1]
>
> postfix/smtpd[16810]: 4DB4439810B: client=localhost.localdomain[127.0.0.1]
>
> postfix/cleanup[16802]: 4DB4439810B:
> message-id=<20040709084150.4DB4439810B@p15097321.pureserve r.info>
>
> postfix/qmgr[16667]: 4DB4439810B: from=<>, size=2328, nrcpt=1 (queue

active)
>
> avgatefwd[16809]: Message 'outgoing/df-16805-4525E2D7' successfully
> forwarded (250 Ok: queued as 4DB4439810B)
>
> postfix/smtpd[16810]: disconnect from localhost.localdomain[127.0.0.1]
>
> avgatefwd[16809]: Mail bounced to klaus@dimde.info
>
> postfix/local[16814]: 4DB4439810B: to=<kladim@localhost.localhost>,
> relay=local, delay=0, status=sent (mailbox)
> ------------------------------ END OF MAIL.LOG ---------------------------
>
> As far as I see, the avgated receives the mail from postfix, checks it at
> passes it back to postfix via localhost. And this is denied...
>
> the concerning part in master.cf:
> [snip]
> localhost:smtp-backdoor inet n - n - - smtpd -o content_filter=
> [snip]
>
> the interesting (i hope) part of main.cf:
> myhostname = p15097321.pureserver.info
> mydomain = localhost
> myorigin = $mydomain
> inet_interfaces = all
> mydestination = $myhostname, localhost.$mydomain, $mydomain,

smtp.$mydomain
> mynetworks_style = host
> mynetworks = 127.0.0.1/8, localhost
> relay_domains = $mydestination
> smtpd_sender_restrictions = hash:/etc/postfix/access
> smtpd_client_restrictions =
> strict_rfc821_envelopes = no
> smtpd_recipient_restrictions =
> permit_sasl_authenticated,reject_unauth_destinatio n, permit_mynetworks
> content_filter = smtp:127.0.0.1:10024
>
> with access:
> localhost RELAY
>
> What have I done wrong?
>
> Thanks in advance
>
> Klaus



Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 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:09 PM.


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