Marc Haber wrote:
Hmm it's a local box on a local network. I guess I never needed a dns domainname. Maybe adding one in /etc/hosts would help? (mydomain.org or something then?)Hi,
On Sun, Apr 24, 2005 at 07:37:57PM +0200, Wim De Smet wrote:
On Thu, Apr 21, 2005 at 10:39:02PM +0200, Wim De Smet wrote:It's just the local hostname as returned by hostname --fqdn. I dunno what else I should write.
I'm confused to what is happening. I changed some things:I'd put in the FQDN.
dc_other_hostnames='Orion'
hostname --fqdn should return the fully qualified host name (FQDN),
not the unqualified hostname. There is something wrong on your box.
Is debugging output (add -d) helpful?Not quite sure how I would go about setting that with the deamon. I included the output I get when trying the rewriting rules in debug mode.
That's what I meant.
However, this output is not conclusive since rewriting seems to work ok, but not when sending an actual e-mail.
Can you please send the output of
echo -e "From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: test\n\ntest" | exim -d -f [EMAIL PROTECTED] [EMAIL PROTECTED]
I attached it.
greets, Wim
P.S.: is there supposed to be an /usr/sbin/exim link? I don't have one
Exim version 4.50 uid=0 gid=0 pid=6575 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=6575 auxiliary group list: <none> configuration file is /var/lib/exim4/config.autogenerated log selectors = ffffffff 7fffffff LOG: MAIN cwd=/root 5 args: exim4 -d -f [EMAIL PROTECTED] [EMAIL PROTECTED] trusted user admin user changed uid/gid: privilege not needed uid=108 gid=108 pid=6575 auxiliary group list: <none> originator: uid=0 gid=0 login=root name= sender address = [EMAIL PROTECTED] set_process_info: 6575 accepting a local non-SMTP message from <[EMAIL PROTECTED]> Sender: [EMAIL PROTECTED] Recipients: [EMAIL PROTECTED] search_tidyup called >>Headers received: From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: test
address match: [EMAIL PROTECTED] [EMAIL PROTECTED] localhost in "@:localhost:Orion"? yes (matched "localhost") localhost in "+local_domains"? yes (matched "+local_domains") [EMAIL PROTECTED] in "[EMAIL PROTECTED]"? yes (matched "[EMAIL PROTECTED]") search_open: lsearch "/etc/email-addresses" search_find: file="/etc/email-addresses" key="kromagg" partial=-1 affix=NULL starflags=0 LRU list: :/etc/email-addresses End internal_search_find: file="/etc/email-addresses" type=lsearch key="kromagg" file lookup required for kromagg in /etc/email-addresses lookup yielded: [EMAIL PROTECTED] LOG: address_rewrite MAIN "[EMAIL PROTECTED]" from env-from rewritten as "[EMAIL PROTECTED]" by rule 1 address match: [EMAIL PROTECTED] [EMAIL PROTECTED] yucom.be in "Orion"? no (end of list) [EMAIL PROTECTED] in "[EMAIL PROTECTED]"? no (end of list) rewritten sender = [EMAIL PROTECTED] rewrite_one_header: type=F: From: [EMAIL PROTECTED] address match: [EMAIL PROTECTED] [EMAIL PROTECTED] localhost in "@:localhost:Orion"? yes (matched "localhost") localhost in "+local_domains"? yes (matched "+local_domains") [EMAIL PROTECTED] in "[EMAIL PROTECTED]"? yes (matched "[EMAIL PROTECTED]") search_open: lsearch "/etc/email-addresses" cached open search_find: file="/etc/email-addresses" key="kromagg" partial=-1 affix=NULL starflags=0 LRU list: :/etc/email-addresses End internal_search_find: file="/etc/email-addresses" type=lsearch key="kromagg" cached data used for lookup of kromagg in /etc/email-addresses lookup yielded: [EMAIL PROTECTED] LOG: address_rewrite MAIN "[EMAIL PROTECTED]" from from: rewritten as "[EMAIL PROTECTED]" by rule 1 address match: [EMAIL PROTECTED] [EMAIL PROTECTED] yucom.be in "Orion"? no (end of list) [EMAIL PROTECTED] in "[EMAIL PROTECTED]"? no (end of list) newlen=23 newtype=F newtext: From: [EMAIL PROTECTED] remainder: rewrite_one_header: type=T: To: [EMAIL PROTECTED] search_tidyup called >>Headers after rewriting and local additions: * From: [EMAIL PROTECTED] F From: [EMAIL PROTECTED] T To: [EMAIL PROTECTED] Subject: test I Message-Id: <[EMAIL PROTECTED]> * X-rewrote-sender: [EMAIL PROTECTED] Date: Mon, 25 Apr 2005 20:44:30 +0200 Data file written for message 1DQ8ZK-0001i3-PW >>Generated Received: header line P Received: from root by Orion with local (Exim 4.50) id 1DQ8ZK-0001i3-PW for [EMAIL PROTECTED]; Mon, 25 Apr 2005 20:44:30 +0200 calling local_scan(); timeout=300 local_scan() returned 0 NULL Writing spool header file Size of headers = 264 LOG: MAIN <= [EMAIL PROTECTED] U=root P=local S=270 T="test" search_tidyup called exec /usr/sbin/exim4 -d=0xfbb95cfd -Mc 1DQ8ZK-0001i3-PW Exim version 4.50 uid=108 gid=108 pid=6576 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=108 pid=6576 auxiliary group list: <none> search_tidyup called >>>>>>>>>>>>>>>> Exim pid=6575 terminating with rc=0 >>>>>>>>>>>>>>>> configuration file is /var/lib/exim4/config.autogenerated log selectors = ffffffff 7fffffff LOG: MAIN cwd=/var/spool/exim4 4 args: /usr/sbin/exim4 -d=0xfbb95cfd -Mc 1DQ8ZK-0001i3-PW trusted user admin user skipping ACL configuration - not needed set_process_info: 6576 delivering specified messages set_process_info: 6576 delivering 1DQ8ZK-0001i3-PW reading spool file 1DQ8ZK-0001i3-PW-H user=root uid=0 gid=0 [EMAIL PROTECTED] sender_local=0 ident=root Non-recipients: Empty Tree ---- End of tree ---- recipients_count=1 body_linecount=1 message_linecount=8 Delivery address list: [EMAIL PROTECTED] locking /var/spool/exim4/db/retry.lockfile locked /var/spool/exim4/db/retry.lockfile no retry data available >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Considering: [EMAIL PROTECTED] unique = [EMAIL PROTECTED] no domain retry record no address retry record [EMAIL PROTECTED]: queued for routing >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> routing [EMAIL PROTECTED] --------> hubbed_hosts router <-------- local_part=kromagg domain=gmail.com checking domains expansion of "${if exists{/etc/exim4/hubbed_hosts}{partial-lsearch;/etc/exim4/hubbed_hosts}fail}" forced failure: assume not in this list hubbed_hosts router skipped: domains mismatch --------> smarthost router <-------- local_part=kromagg domain=gmail.com checking domains gmail.com in "@:localhost:Orion"? no (end of list) gmail.com in "! +local_domains"? yes (end of list) R: smarthost for [EMAIL PROTECTED] calling smarthost router smarthost router called for [EMAIL PROTECTED] domain = gmail.com route_item = * mail.tiscali.be byname gmail.com in "*"? yes (matched "*") original list of hosts = "mail.tiscali.be" options = byname expanded list of hosts = "mail.tiscali.be" options = byname set transport remote_smtp_smarthost finding IP address for mail.tiscali.be calling host_find_byname gethostbyname2(af=inet6) returned 4 (NO_DATA) fully qualified name = mail.tiscali.be gethostbyname2 looked up these IP addresses: name=mail.tiscali.be address=62.235.13.171 queued for remote_smtp_smarthost transport: local_part = kromagg domain = gmail.com errors_to=NULL domain_data=NULL localpart_data=NULL routed by smarthost router envelope to: [EMAIL PROTECTED] transport: remote_smtp_smarthost host mail.tiscali.be [62.235.13.171] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> After routing: Local deliveries: Remote deliveries: [EMAIL PROTECTED] Failed addresses: Deferred addresses: search_tidyup called >>>>>>>>>>>>>>>> Remote deliveries >>>>>>>>>>>>>>>> --------> [EMAIL PROTECTED] <-------- search_tidyup called changed uid/gid: remote delivery to [EMAIL PROTECTED] with transport=remote_smtp_smarthost uid=108 gid=108 pid=6577 auxiliary group list: <none> set_process_info: 6577 delivering 1DQ8ZK-0001i3-PW using remote_smtp_smarthost T: remote_smtp_smarthost for [EMAIL PROTECTED] remote_smtp_smarthost transport entered [EMAIL PROTECTED] gmail.com in queue_smtp_domains? no (option unset) checking status of mail.tiscali.be locking /var/spool/exim4/db/retry.lockfile locked /var/spool/exim4/db/retry.lockfile no retry data available mail.tiscali.be [62.235.13.171] status = usable 62.235.13.171 in serialize_hosts? no (option unset) delivering 1DQ8ZK-0001i3-PW to mail.tiscali.be [62.235.13.171] ([EMAIL PROTECTED]) set_process_info: 6577 delivering 1DQ8ZK-0001i3-PW to mail.tiscali.be [62.235.13.171] ([EMAIL PROTECTED]) set_process_info: 6576 delivering 1DQ8ZK-0001i3-PW: waiting for a remote delivery subprocess to finish selecting on subprocess pipes Connecting to mail.tiscali.be [62.235.13.171]:25 ... connected waiting for data on socket read response data: size=31 SMTP<< 220 ESMTP smtp-out.tiscali.be 62.235.13.171 in hosts_avoid_esmtp? no (option unset) SMTP>> EHLO Orion waiting for data on socket read response data: size=97 SMTP<< 250-spoolo3.tiscali.be Hello Orion [83.134.74.101] 250-SIZE 10485760 250-PIPELINING 250 HELP 62.235.13.171 in hosts_require_tls? no (option unset) using PIPELINING 62.235.13.171 in hosts_require_auth? no (option unset) SMTP>> MAIL FROM:<[EMAIL PROTECTED]> SIZE=1303 SMTP>> RCPT TO:<[EMAIL PROTECTED]> SMTP>> DATA waiting for data on socket read response data: size=78 SMTP<< 250 OK SMTP<< 250 Accepted SMTP<< 354 Enter message, ending with "." on a line by itself SMTP>> writing message and terminating "." writing data block fd=7 size=283 timeout=300 waiting for data on socket read response data: size=28 SMTP<< 250 OK id=1DQ8ZK-0005pf-U3 journalling [EMAIL PROTECTED] ok=1 send_quit=1 send_rset=0 continue_more=0 yield=0 first_address is NULL transport_check_waiting entered sequence=1 local_max=500 global_max=-1 locking /var/spool/exim4/db/wait-remote_smtp_smarthost.lockfile locked /var/spool/exim4/db/wait-remote_smtp_smarthost.lockfile opened hints database /var/spool/exim4/db/wait-remote_smtp_smarthost: flags=2 dbfn_read: key=mail.tiscali.be no messages waiting for mail.tiscali.be SMTP>> QUIT set_process_info: 6577 delivering 1DQ8ZK-0001i3-PW: just tried mail.tiscali.be [62.235.13.171] for [EMAIL PROTECTED]: result OK Leaving remote_smtp_smarthost transport set_process_info: 6577 delivering 1DQ8ZK-0001i3-PW (just run remote_smtp_smarthost for [EMAIL PROTECTED] in subprocess) search_tidyup called reading pipe for subprocess 6577 (not ended) read() yielded 5 selecting on subprocess pipes reading pipe for subprocess 6577 (not ended) read() yielded 75 selecting on subprocess pipes reading pipe for subprocess 6577 (not ended) read() yielded 2 Z0 item read remote delivery process 6577 ended set_process_info: 6576 delivering 1DQ8ZK-0001i3-PW post-process [EMAIL PROTECTED] (0) [EMAIL PROTECTED] delivered LOG: MAIN => [EMAIL PROTECTED] F=<[EMAIL PROTECTED]> P=<[EMAIL PROTECTED]> R=smarthost T=remote_smtp_smarthost S=283 H=mail.tiscali.be [62.235.13.171]:25 C="250 OK id=1DQ8ZK-0005pf-U3" QT=1s DT=1s >>>>>>>>>>>>>>>> deliveries are done >>>>>>>>>>>>>>>> changed uid/gid: post-delivery tidying uid=108 gid=108 pid=6576 auxiliary group list: <none> set_process_info: 6576 tidying up after delivering 1DQ8ZK-0001i3-PW Processing retry items Succeeded addresses: [EMAIL PROTECTED]: no retry items Failed addresses: Deferred addresses: end of retry processing LOG: MAIN Completed QT=1s end delivery of 1DQ8ZK-0001i3-PW search_tidyup called search_tidyup called >>>>>>>>>>>>>>>> Exim pid=6576 terminating with rc=0 >>>>>>>>>>>>>>>>