PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Logiciels d'hébergement > mailing.postfix.users > Postfix/Mailman problem: Relay access denied
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Postfix/Mailman problem: Relay access denied

Réponse
 
LinkBack Outils de la discussion
Vieux 18/05/2006, 22h00   #1
samoht
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Postfix/Mailman problem: Relay access denied

Hi,
I'm actually having a problem with postfix and mailman.
When I'm sending mail over my server to an address, this works.
But if I'm sending a mail to a mailing list configured with mailman, I
get "Relay access denied" for the same target address.

This is the error message:

May 18 21:24:22 macmini postfix/smtpd[5187]: > xxx[a.b.c.d]: 554
<x...@y.z>: Relay access denied

Here is my postfix configuration:

alias_maps = hash:/etc/aliases , hash:/usr/local/mailman/data/aliases
append_dot_mydomain = no
biff = no
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 20
debug_peer_list = all
default_rbl_reply = $rbl_code RBLTRAP: You can't send us a E-mail
today!!!
disable_vrfy_command = yes
html_directory = no
inet_interfaces = all
local_transport = local
mail_owner = postfix
mailbox_command = /usr/bin/procmail -a "$EXTENSION"
mailbox_size_limit = 0
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
mydestination = $myhostname, localhost.$mydomain, localhost,
macmini.local
mydomain_fallback = localhost
myhostname = example.tld
mynetworks = 127.0.0.1
mynetworks_style = class
myorigin = $myhostname
newaliases_path = /usr/bin/newaliases
owner_request_special = no
queue_directory = /private/var/spool/postfix
readme_directory = /usr/share/doc/postfix
recipient_delimiter = +
relayhost =
sample_directory = /usr/share/doc/postfix/examples
sendmail_path = /usr/sbin/sendmail
setgid_group = postdrop
smtpd_delay_reject = yes
smtpd_helo_required = yes
smtpd_recipient_restrictions = permit_mynetworks,
reject_unauth_destination
smtpd_tls_key_file =
unknown_local_recipient_reject_code = 550

Can anyone give me a clue what I'm doing wrong?

If you need more information, please let me know.

Thanks in advance,
Thomas

  Réponse avec citation
Vieux 20/05/2006, 03h06   #2
Greg Hackney
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Postfix/Mailman problem: Relay access denied

samoht wrote:
> Hi,
> I'm actually having a problem with postfix and mailman.
> When I'm sending mail over my server to an address, this works.
> But if I'm sending a mail to a mailing list configured with mailman, I
> get "Relay access denied" for the same target address.
>
> This is the error message:
>
> May 18 21:24:22 macmini postfix/smtpd[5187]: > xxx[a.b.c.d]: 554
> <x...@y.z>: Relay access denied
>
> Here is my postfix configuration:
>
> alias_maps = hash:/etc/aliases , hash:/usr/local/mailman/data/aliases
> append_dot_mydomain = no
> biff = no
> command_directory = /usr/sbin
> config_directory = /etc/postfix
> daemon_directory = /usr/libexec/postfix
> debug_peer_level = 20
> debug_peer_list = all
> default_rbl_reply = $rbl_code RBLTRAP: You can't send us a E-mail
> today!!!
> disable_vrfy_command = yes
> html_directory = no
> inet_interfaces = all
> local_transport = local
> mail_owner = postfix
> mailbox_command = /usr/bin/procmail -a "$EXTENSION"
> mailbox_size_limit = 0
> mailq_path = /usr/bin/mailq
> manpage_directory = /usr/share/man
> mydestination = $myhostname, localhost.$mydomain, localhost,
> macmini.local
> mydomain_fallback = localhost
> myhostname = example.tld
> mynetworks = 127.0.0.1
> mynetworks_style = class
> myorigin = $myhostname
> newaliases_path = /usr/bin/newaliases
> owner_request_special = no
> queue_directory = /private/var/spool/postfix
> readme_directory = /usr/share/doc/postfix
> recipient_delimiter = +
> relayhost =
> sample_directory = /usr/share/doc/postfix/examples
> sendmail_path = /usr/sbin/sendmail
> setgid_group = postdrop
> smtpd_delay_reject = yes
> smtpd_helo_required = yes
> smtpd_recipient_restrictions = permit_mynetworks,
> reject_unauth_destination
> smtpd_tls_key_file =
> unknown_local_recipient_reject_code = 550
>
> Can anyone give me a clue what I'm doing wrong?
>
> If you need more information, please let me know.
>
> Thanks in advance,
> Thomas


Hello Thomas,

Here's what I think is happening:

When you originate email on your system, it goes out via /usr/sbin/sendmail, which is
the local email interface into Postfix. Spam checking isn't performed like it is for inbound SMTP email.

Your Mailman is probably configured to send outbound email via SMTP into Postfix. Spam checking is
done on this email under SMTP; thus the relay block.

Here's how I think it needs to be fixed:

In /usr/lib/mailman/Mailman/Defaults.py, take a look at:


DELIVERY_MODULE = (I think you want it set to 'Sendmail' and not 'SMTPDirect')
MTA = 'Postfix'
SENDMAIL_CMD = '/usr/sbin/sendmail'

--
Greg








  Réponse avec citation
Vieux 21/05/2006, 16h52   #3
Greg Hackney
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Postfix/Mailman problem: Relay access denied


> Here's how I think it needs to be fixed:
>
> In /usr/lib/mailman/Mailman/Defaults.py, take a look at:
>
>
> DELIVERY_MODULE = (I think you want it set to 'Sendmail' and not
> 'SMTPDirect')
> MTA = 'Postfix'
> SENDMAIL_CMD = '/usr/sbin/sendmail'
>
> --
> Greg



P.S. If you choose to use the above /usr/sbin/sendmail rather than smtpd, you
also need to comment out this line in Handlers/Sendmail.py:

# assert 0, 'Use of the Sendmail.py delivery module is highly discouraged'

--
Greg
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 12h07.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,11575 seconds with 11 queries