Bug#309514: Re: Bug#309514: tag in update-exim4.conf.conf ignored

2005-05-27 Thread Marc Haber
tags #309514 moreinfo
thanks

On Tue, May 17, 2005 at 08:40:21PM +0200, Marc Haber wrote:
 On Tue, May 17, 2005 at 06:49:27PM +0100, Marcos D. Marado Torres wrote:
  First I thoght I was forgettin something, but now I doubt it...
  In update-exim4.conf.conf (generated by dpkg-reconfigure exim4-config) I 
  have dc_other_hostnames='localhost.localdomain, first-host.com, 
  secondhost.biz'
  and I have both first-host.com and secondhost.biz in /etc/hosts as 127.0.0.1
  
  Problem: mails to first-host.com have no problem, but to secondhost.biz are
  rejected with
  relay not permitted
 
 exim -d -bh some-ip and a faked SMTP session on the console will
 probably give clues why first-host.com and secondhost.biz are treated
 differently.
 
 Unfortunately, you didn't use reportbug to report your bug, and thus
 no information about your configuration is available which could aid
 in remote debugging.

To solve this issue, more information from the submitter is needed.
Tagging the bug appropriately.

It will be closed on June 30 if no more information is submitted.

Greetings
Marc

-- 
-
Marc Haber | I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany  |  lose things.Winona Ryder | Fon: *49 621 72739834
Nordisch by Nature |  How to make an American Quilt | Fax: *49 621 72739835


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#309514: Re: Bug#309514: tag in update-exim4.conf.conf ignored

2005-05-27 Thread Marcos D. Marado Torres

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


exim -d -bh some-ip and a faked SMTP session on the console will
probably give clues why first-host.com and secondhost.biz are treated
differently.


I did it:
82.154.251.90 is the external IP for first-host.com and secondhost.biz:

 exim4 -d -bh 82.154.251.90
Exim version 4.50 uid=0 gid=0 pid=12502 D=fbb95cfd
Berkeley DB: Sleepycat Software: Berkeley DB 4.2.52: (December  3, 2003)
Support for: iconv() IPv6 GnuTLS
Lookups: lsearch wildlsearch nwildlsearch iplsearch cdb dbm dbmnz dsearch nis 
nis0 passwd
Authenticators: cram_md5 plaintext
Routers: accept dnslookup ipliteral manualroute queryprogram redirect
Transports: appendfile/maildir/mailstore autoreply lmtp pipe smtp
Fixed never_users: 0
changed uid/gid: forcing real = effective
  uid=0 gid=0 pid=12502
  auxiliary group list: none
configuration file is /var/lib/exim4/config.autogenerated
log selectors = 0ffc 00020800
trusted user
admin user
changed uid/gid: privilege not needed
  uid=102 gid=102 pid=12502
  auxiliary group list: none
user name root extracted from gecos field root
originator: uid=0 gid=0 login=root name=root
sender address = [EMAIL PROTECTED]
sender_fullhost = [82.154.251.90]
sender_rcvhost = [82.154.251.90]

 SMTP testing session as if from host 82.154.251.90
 but without any ident (RFC 1413) callback.
 This is not for real!

host in hosts_connection_nolog? no (option unset)
LOG: smtp_connection MAIN
  SMTP connection from [82.154.251.90]
host in host_lookup? yes (matched *)
looking up host name for 82.154.251.90
DNS lookup of 90.251.154.82.in-addr.arpa (PTR) succeeded
IP address lookup yielded adslemp-b5-251-90.telepac.pt
gethostbyname2(af=inet6) returned 4 (NO_DATA)
gethostbyname2 looked up these IP addresses:
  name=adslemp-b5-251-90.telepac.pt address=82.154.251.90
checking addresses for adslemp-b5-251-90.telepac.pt
  82.154.251.90 OK
sender_fullhost = adslemp-b5-251-90.telepac.pt [82.154.251.90]
sender_rcvhost = adslemp-b5-251-90.telepac.pt ([82.154.251.90])
set_process_info: 12502 handling incoming connection from 
adslemp-b5-251-90.telepac.pt [82.154.251.90]
host in host_reject_connection? no (option unset)
host in sender_unqualified_hosts? no (option unset)
host in recipient_unqualified_hosts? no (option unset)
host in helo_verify_hosts? no (option unset)
host in helo_try_verify_hosts? no (option unset)
host in helo_accept_junk_hosts? no (option unset)
SMTP 220 dis-hab.com ESMTP Exim 4.50 Fri, 27 May 2005 11:32:37 +0100^M
220 dis-hab.com ESMTP Exim 4.50 Fri, 27 May 2005 11:32:37 +0100^M
smtp_setup_msg entered
QUIT
SMTP QUIT
SMTP 221 dis-hab.com closing connection^M
221 dis-hab.com closing connection^M
LOG: smtp_connection MAIN
  SMTP connection from adslemp-b5-251-90.telepac.pt [82.154.251.90] closed by 
QUIT
search_tidyup called

Exim pid=12502 terminating with rc=0 

~#

I guess that this is what you wanted, if not please tell me what more do you
want me to do...


Unfortunately, you didn't use reportbug to report your bug, and thus
no information about your configuration is available which could aid
in remote debugging.


Do you want me to do that now, or do you want me to give more info? If so, tell
me what.

If the OP quoted his config accurately, I'm betting it's the commas that 
are breaking things.  Exim uses : (without spaces) for list separation.


I've tried that. The result:
2005-05-27 11:53:16 H=smtp.dei.uc.pt [193.137.203.228] F=[EMAIL PROTECTED] rejected 
RCPT [EMAIL PROTECTED]: relay not permitted

If I send locally the mail arrives as expected:

2005-05-27 11:57:02 1DbcWU-0003NI-9j = [EMAIL PROTECTED] U=root P=local S=295
2005-05-27 11:57:02 1DbcWU-0003NI-9j = magicbrain [EMAIL PROTECTED] 
R=local_user T=maildir_home
2005-05-27 11:57:02 1DbcWU-0003NI-9j Completed

Problem is that external mails to secondhost.biz should be treated knowing that
secondhost.biz is a final destination and not a host to relay to...


tags #309514 moreinfo
thanks


just tell me what more info is needed and I'll gladly give it...

Marado

- -- 
/* *** */

   Marcos Daniel Marado Torres AKA  Mind Booster Noori
   http://student.dei.uc.pt/~marado  -   [EMAIL PROTECTED]
   ()   Join the ASCII ribbon campaign against HTML e-mail and
   /\   Microsoft attachments.They endanger the World.
/* *** */
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.1 (GNU/Linux)
Comment: Made with pgp4pine 1.76

iD8DBQFClv3jmNlq8m+oD34RAoA8AKD3kemKJMC/E/WypctZLGgnzWaxpgCgp2kp
pjuKnl2n3DabXKcvwEadta4=
=xeLh
-END PGP SIGNATURE-



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#309514: Re: Bug#309514: tag in update-exim4.conf.conf ignored

2005-05-27 Thread Marcos D. Marado Torres

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Greetings,

On Fri, 27 May 2005, Marc Haber wrote:


Hi,

On Fri, May 27, 2005 at 12:00:47PM +0100, Marcos D. Marado Torres wrote:

exim -d -bh some-ip and a faked SMTP session on the console will
probably give clues why first-host.com and secondhost.biz are treated
differently.


I did it:
82.154.251.90 is the external IP for first-host.com and secondhost.biz:

 exim4 -d -bh 82.154.251.90
Exim version 4.50 uid=0 gid=0 pid=12502 D=fbb95cfd
Berkeley DB: Sleepycat Software: Berkeley DB 4.2.52: (December  3, 2003)
Support for: iconv() IPv6 GnuTLS
Lookups: lsearch wildlsearch nwildlsearch iplsearch cdb dbm dbmnz dsearch
nis nis0 passwd
Authenticators: cram_md5 plaintext
Routers: accept dnslookup ipliteral manualroute queryprogram redirect
Transports: appendfile/maildir/mailstore autoreply lmtp pipe smtp
Fixed never_users: 0
changed uid/gid: forcing real = effective
  uid=0 gid=0 pid=12502
  auxiliary group list: none
configuration file is /var/lib/exim4/config.autogenerated
log selectors = 0ffc 00020800
trusted user
admin user
changed uid/gid: privilege not needed
  uid=102 gid=102 pid=12502
  auxiliary group list: none
user name root extracted from gecos field root
originator: uid=0 gid=0 login=root name=root
sender address = [EMAIL PROTECTED]
sender_fullhost = [82.154.251.90]
sender_rcvhost = [82.154.251.90]

 SMTP testing session as if from host 82.154.251.90
 but without any ident (RFC 1413) callback.
 This is not for real!

host in hosts_connection_nolog? no (option unset)
LOG: smtp_connection MAIN
  SMTP connection from [82.154.251.90]
host in host_lookup? yes (matched *)
looking up host name for 82.154.251.90
DNS lookup of 90.251.154.82.in-addr.arpa (PTR) succeeded
IP address lookup yielded adslemp-b5-251-90.telepac.pt
gethostbyname2(af=inet6) returned 4 (NO_DATA)
gethostbyname2 looked up these IP addresses:
  name=adslemp-b5-251-90.telepac.pt address=82.154.251.90
checking addresses for adslemp-b5-251-90.telepac.pt
  82.154.251.90 OK
sender_fullhost = adslemp-b5-251-90.telepac.pt [82.154.251.90]
sender_rcvhost = adslemp-b5-251-90.telepac.pt ([82.154.251.90])
set_process_info: 12502 handling incoming connection from
adslemp-b5-251-90.telepac.pt [82.154.251.90]
host in host_reject_connection? no (option unset)
host in sender_unqualified_hosts? no (option unset)
host in recipient_unqualified_hosts? no (option unset)
host in helo_verify_hosts? no (option unset)
host in helo_try_verify_hosts? no (option unset)
host in helo_accept_junk_hosts? no (option unset)
SMTP 220 dis-hab.com ESMTP Exim 4.50 Fri, 27 May 2005 11:32:37 +0100^M
220 dis-hab.com ESMTP Exim 4.50 Fri, 27 May 2005 11:32:37 +0100^M
smtp_setup_msg entered
QUIT
SMTP QUIT
SMTP 221 dis-hab.com closing connection^M
221 dis-hab.com closing connection^M
LOG: smtp_connection MAIN
  SMTP connection from adslemp-b5-251-90.telepac.pt [82.154.251.90] closed
  by QUIT
search_tidyup called

Exim pid=12502 terminating with rc=0 

~#

I guess that this is what you wanted, if not please tell me what more do you
want me to do...


You need to try to deliver one messages for first-host.com then one for
secondhost.biz down that faked session by talking SMTP. Hopefully, the
different treatment will be seen in the debug output. Maybe you can
help yourself.


All seems fine... 
For the 1st host:


Script started on Fri May 27 13:11:08 2005
dis-hab:~# exim4 -d -bh 82.154.251.90
Exim version 4.50 uid=0 gid=0 pid=13219 D=fbb95cfd
Berkeley DB: Sleepycat Software: Berkeley DB 4.2.52: (December  3, 2003)
Support for: iconv() IPv6 GnuTLS
Lookups: lsearch wildlsearch nwildlsearch iplsearch cdb dbm dbmnz dsearch nis 
nis0 passwd
Authenticators: cram_md5 plaintext
Routers: accept dnslookup ipliteral manualroute queryprogram redirect
Transports: appendfile/maildir/mailstore autoreply lmtp pipe smtp
Fixed never_users: 0
changed uid/gid: forcing real = effective
  uid=0 gid=0 pid=13219
  auxiliary group list: none
configuration file is /var/lib/exim4/config.autogenerated
log selectors = 0ffc 00020800
trusted user
admin user
changed uid/gid: privilege not needed
  uid=102 gid=102 pid=13219
  auxiliary group list: none
user name root extracted from gecos field root
originator: uid=0 gid=0 login=root name=root
sender address = [EMAIL PROTECTED]
sender_fullhost = [82.154.251.90]
sender_rcvhost = [82.154.251.90]

 SMTP testing session as if from host 82.154.251.90
 but without any ident (RFC 1413) callback.
 This is not for real!

host in hosts_connection_nolog? no (option unset)
LOG: smtp_connection MAIN
  SMTP connection from [82.154.251.90]
host in host_lookup? yes (matched *)
looking up host name for 82.154.251.90
DNS lookup of 90.251.154.82.in-addr.arpa (PTR) succeeded
IP address lookup yielded adslemp-b5-251-90.telepac.pt
gethostbyname2(af=inet6) returned 4 (NO_DATA)
gethostbyname2 looked up these IP addresses:
  name=adslemp-b5-251-90.telepac.pt address=82.154.251.90
checking addresses for 

Bug#309514: tag in update-exim4.conf.conf ignored

2005-05-17 Thread Marc Haber
On Tue, May 17, 2005 at 06:49:27PM +0100, Marcos D. Marado Torres wrote:
 First I thoght I was forgettin something, but now I doubt it...
 In update-exim4.conf.conf (generated by dpkg-reconfigure exim4-config) I 
 have dc_other_hostnames='localhost.localdomain, first-host.com, 
 secondhost.biz'
 and I have both first-host.com and secondhost.biz in /etc/hosts as 127.0.0.1
 
 Problem: mails to first-host.com have no problem, but to secondhost.biz are
 rejected with
 relay not permitted

exim -d -bh some-ip and a faked SMTP session on the console will
probably give clues why first-host.com and secondhost.biz are treated
differently.

Unfortunately, you didn't use reportbug to report your bug, and thus
no information about your configuration is available which could aid
in remote debugging.

Greetings
Marc

-- 
-
Marc Haber | I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany  |  lose things.Winona Ryder | Fon: *49 621 72739834
Nordisch by Nature |  How to make an American Quilt | Fax: *49 621 72739835


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]