Re: Strange behavior of Postfix?

2012-03-08 Thread Wietse Venema
Leslie Le?n Sinclair:
> A childhood friend of mine have this problem:
> 
> He can send mails to his mailing list server only with RoundCube, but 
> with another Client[Squirrelmail, Thunderbird, ClawsMail or Micro$oft 
> Outlook doesn?t], and I don?t know what?s happening. I post below his 

On the RECEIVING mail server side:

1) Show one maillog example of a "good" session.

2) Show one maillog example of a "bad" session.

Wietse


Re: Strange behavior of Postfix?

2012-03-08 Thread Noel Jones
On 3/8/2012 12:43 PM, Leslie León Sinclair wrote:
> A childhood friend of mine have this problem:
> 
> He can send mails to his mailing list server only with RoundCube,
> but with another Client[Squirrelmail, Thunderbird, ClawsMail or
> Micro$oft Outlook doesn´t], and I don´t know what´s happening. I
> post below his main.cf. Mailman if configured and working, when you
> send a mail to a list, postfix give a user "unknown error"[the user
> of the list], but with RoundCube works as a sunshine. So I don´t
> know what might be happening there.
> 
> I hope you can help me because the issue is tricky to me too.

How to ask for help:
http://www.postfix.org/DEBUG_README.html#mail

In particular, we need to see "postconf -n" output and postfix logs
of one good session, and postfix logs of one failed session.

> 
> 
...
> masquerade_domain =
> proxy:mysql:/etc/postfix/mysql/mysql_virtual_domains_maps.cf
> relay_domain =
> proxy:mysql:/etc/postfix/mysql/mysql_virtual_domains_maps.cf

the above two settings are probably a mistake.  What is the intent
of these?

> smtpd_recipient_restrictions= permit_mynetworks,
> permit_auth_destination, permit_sasl_authenticated,
> permit_mx_backup, reject_unauth_destination, reject_unlisted_recipient

This is wrong.  Don't use permit_auth_destination in this context,
and do not use permit_mx_backup.



> smtp_mx_address_limit = 0

This should be set at the default 5 or another fairly low number to
protect against destinations with hundreds of MX hosts.

> smtpd_recipient_limit = 25

Be aware that setting the recipient limit low will increase load on
your server.


> #mydestination = [He tried a lot of values here, but right now is
> empty, and still strange the behavior]

Note there is a difference between empty and commented out.
Commented out uses the default value of "$myhostname,
localhost.$mydomain, localhost"
http://www.postfix.org/postconf.5.html#mydestination

> show_user_unknown_table_name = no

This makes debugging harder.  Set to "yes" until everything is working.

> local_recipient_maps =  $alias_maps, $virtual_mailbox_maps,
> proxy:unix:passwd.byname

virtual_mailbox_maps should never be included in local recipients.





  -- Noel Jones


Re: Strange behavior of Postfix?

2012-03-08 Thread Leslie León Sinclair

The two sessions, below...

1) Show one maillog example of a "good" session.


Mar  8 14:58:40 apolo postfix/pickup[26492]: C7A5356B4: uid=33 
from=
Mar  8 14:58:40 apolo postfix/qmgr[2706]: C7A5356B4: 
from=, size=553, nrcpt=1 (queue active)
Mar  8 14:58:42 apolo postfix/smtpd[24204]: < localhost[127.0.0.1]: rcpt 
TO:
Mar  8 14:58:42 apolo postfix/smtpd[24204]: extract_addr: input: 

Mar  8 14:58:42 apolo postfix/smtpd[24204]: smtpd_check_addr: 
addr=les...@mail.mydomain.cu
Mar  8 14:58:42 apolo postfix/smtpd[24204]: ctable_locate: move existing 
entry key les...@mail.mydomain.cu
Mar  8 14:58:42 apolo postfix/smtpd[24204]: extract_addr: in: 
, result: les...@mail.mydomain.cu
Mar  8 14:58:42 apolo postfix/smtpd[24204]: ctable_locate: move existing 
entry key les...@mail.mydomain.cu
Mar  8 14:58:42 apolo postfix/smtpd[24204]: maps_find: 
recipient_canonical_maps: les...@mail.mydomain.cu: not found
Mar  8 14:58:42 apolo postfix/smtpd[24204]: mail_addr_find: 
les...@mail.mydomain.cu -> (not found)
Mar  8 14:58:42 apolo postfix/smtpd[24204]: maps_find: canonical_maps: 
les...@mail.mydomain.cu: not found
Mar  8 14:58:42 apolo postfix/smtpd[24204]: mail_addr_find: 
les...@mail.mydomain.cu -> (not found)
Mar  8 14:58:42 apolo postfix/smtpd[24204]: send attr key = 
les...@mail.mydomain.cu
Mar  8 14:58:42 apolo postfix/smtpd[24204]: input attribute value: 
les...@mail.mydomain.cu
Mar  8 14:58:42 apolo postfix/smtpd[24204]: dict_proxy_lookup: 
table=mysql:/etc/postfix/mysql/mysql_virtual_alias_maps.cf 
flags=lock|fold_fix key=les...@mail.mydomain.cu -> status=0 
result=les...@mail.mydomain.cu
Mar  8 14:58:42 apolo postfix/smtpd[24204]: maps_find: 
virtual_alias_maps: 
proxy:mysql:/etc/postfix/mysql/mysql_virtual_alias_maps.cf(0,lock|fold_fix): 
les...@mail.mydomain.cu = les...@mail.mydomain.cu
Mar  8 14:58:42 apolo postfix/smtpd[24204]: mail_addr_find: 
les...@mail.mydomain.cu -> les...@mail.mydomain.cu
Mar  8 14:58:42 apolo postfix/pipe[27511]: 9749456A7: 
to=, relay=dovecot, delay=0.17, 
delays=0.13/0/0/0.04, dsn=2.0.0, status=sent (delivered via dovecot service)




2) Show one maillog example of a "bad" session.


Mar  8 14:52:59 apolo postfix/smtpd[24202]: Read 52 chars: MAIL 
FROM:
Mar  8 14:52:59 apolo postfix/smtpd[24202]: NOQUEUE: reject: RCPT from 
unknown[10.8.xxx.yyy]: 550 5.1.1 : Recipient 
address rejected: User unknown; from= 
to= proto=ESMTP helo=<[10.8.xxx.yyy]>



Participe en la XVI Convención de Ingeniería y Arquitectura del 
26 al 30 de noviembre de 2012.
Habana, Cuba: http://www.congresouniversidad.cu
Consulte la enciclopedia colaborativa cubana. http://www.ecured.cu


Re: Strange behavior of Postfix?

2012-03-08 Thread Reindl Harald


Am 08.03.2012 20:58, schrieb Leslie León Sinclair:
>> 2) Show one maillog example of a "bad" session.
> 
> Mar  8 14:52:59 apolo postfix/smtpd[24202]: Read 52 chars: MAIL 
> FROM:
> Mar  8 14:52:59 apolo postfix/smtpd[24202]: NOQUEUE: reject: RCPT from 
> unknown[10.8.xxx.yyy]: 550 5.1.1
> : Recipient address rejected: User unknown; 
> from=
> to= proto=ESMTP helo=<[10.8.xxx.yyy]>

a) do NOT pst DEBUG LOG unless requested, the above is ignored because 
unreadable
b) this is not a full session - where is the connect




signature.asc
Description: OpenPGP digital signature


Re: Strange behavior of Postfix?

2012-03-08 Thread Wietse Venema
Leslie Le?n Sinclair:
> The two sessions, below...
> > 1) Show one maillog example of a "good" session.
> 
> Mar  8 14:58:40 apolo postfix/pickup[26492]: C7A5356B4: uid=33 
> from=

Please DO NOT send debug logging unless asked to do so.

This mail is not received via SMTP.

> > 2) Show one maillog example of a "bad" session.
> 
> Mar  8 14:52:59 apolo postfix/smtpd[24202]: NOQUEUE: reject: RCPT from 
> unknown[10.8.xxx.yyy]: 550 5.1.1 : Recipient 
> address rejected: User unknown; from= 
> to= proto=ESMTP helo=<[10.8.xxx.yyy]>

This mail is received via SMTP. You have misconfigured the Postfix.

He needs to follow instructions in the mailman documentation. Fixing
this on the mailing list is a waste of everyone's time, because all
he needs to do follow instructions.

Wietse