#1  
Old 20th March 2006, 12:21
confuzzled confuzzled is offline
Junior Member
 
Join Date: Mar 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Unwanted address rewrite

Using ISPConfig, I set up a client, and a site, called "c2".

ISPConfig has created entries for it in /etc/postfix/virtusertable:
###################################
#
# ISPConfig virtusertable Configuration File
# Version 1.0
#
###################################
c2@www.c2.dddddd.com web5_c2
web5_c2@www.c2.dddddd.com web5_c2
c2@c2.dddddd.com web5_c2
web5_c2@c2.dddddd.com web5_c2
c1@www.gonzo.dddddd.com web4_c1
web4_c1@www.gonzo.dddddd.com web4_c1
c1@gonzo.dddddd.com web4_c1
web4_c1@gonzo.dddddd.com web4_c1
#### MAKE MANUAL ENTRIES BELOW THIS LINE! ####


When I send an email to c2@c2.dddddd.com, it bounces.

Undelivered Mail Returned to Sender
From:
Mail Delivery System <MAILER-DAEMON@gonzo.dddddd.com>
To:
paul@gonzo.dddddd.com
Date:
Today 10:59:11

This is the Postfix program at host server1.gonzo.dddddd.com.

I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to <postmaster>

If you do so, please include this problem report. You can
delete your own text from the attached returned message.

The Postfix program

<web5_c2@gonzo.dddddd.com>: unknown user: "web5_c2"
unnamed
Delivery report

Encapsulated message
test
From:
paul <paul@gonzo.dddddd.com>
To:
c2@c2.dddddd.com
Date:
Today 10:59:02

End of encapsulated message


Looking at /var/log/mail, it seems like something (maybe amavis, I don't know)
has rewritten the subdomain from c2.dddddd.com to gonzo.dddddd.com, i.e. from virtual to real. But there isn't a user c2
at gonzo, only at c2, so it bounces - that's my theory.

Mar 20 10:59:04 gonzo postfix/smtpd[6527]: connect from gonzo.dddddd.com[127.0.0.2]
Mar 20 10:59:04 gonzo postfix/smtpd[6527]: A7EA11E513: client=gonzo.dddddd.com[127.0.0.2]
Mar 20 10:59:04 gonzo postfix/cleanup[6529]: A7EA11E513: message-id=<200603201059.02714.paul@gonzo.dddddd.com>
Mar 20 10:59:04 gonzo postfix/qmgr[5499]: A7EA11E513: from=<paul@gonzo.dddddd.com>, size=548, nrcpt=1 (queue active)
Mar 20 10:59:04 gonzo postfix/smtpd[6527]: disconnect from gonzo.dddddd.com[127.0.0.2]
Mar 20 10:59:05 gonzo amavis[5729]: (05729-01) WARN: all primary virus scanners failed, considering backups
Mar 20 10:59:11 gonzo postfix/smtpd[6535]: connect from localhost[127.0.0.1]
Mar 20 10:59:11 gonzo postfix/smtpd[6535]: A698D1B495: client=localhost[127.0.0.1]
Mar 20 10:59:11 gonzo postfix/cleanup[6529]: A698D1B495: message-id=<200603201059.02714.paul@gonzo.dddddd.com>
Mar 20 10:59:11 gonzo postfix/qmgr[5499]: A698D1B495: from=<paul@gonzo.dddddd.com>, size=1024, nrcpt=1 (queue active)
Mar 20 10:59:11 gonzo postfix/smtpd[6535]: disconnect from localhost[127.0.0.1]
Mar 20 10:59:11 gonzo amavis[5729]: (05729-01) Passed CLEAN, [127.0.0.2] <paul@gonzo.dddddd.com> -> <web5_c2@gonzo.dddddd.com>, Message-ID: <200603201059.02714.paul@gonzo.dddddd.com>, mail_id: 5kAWkQnpleSl, Hits: -1.633, 6955 ms
Mar 20 10:59:11 gonzo postfix/smtp[6530]: A7EA11E513: to=<web5_c2@gonzo.dddddd.com>, orig_to=<c2@c2.dddddd.com>, relay=127.0.0.1[127.0.0.1], delay=7, status=sent (250 2.6.0 Ok, id=05729-01, from MTA([127.0.0.1]:10025): 250 Ok: queued as A698D1B495)
Mar 20 10:59:11 gonzo postfix/qmgr[5499]: A7EA11E513: removed
Mar 20 10:59:11 gonzo postfix/local[6536]: A698D1B495: to=<web5_c2@gonzo.dddddd.com>, relay=local, delay=0, status=bounced (unknown user: "web5_c2")
Mar 20 10:59:11 gonzo postfix/cleanup[6529]: F29D31EB68: message-id=<20060320105911.F29D31EB68@server1.gonzo.dddddd .com>
Mar 20 10:59:12 gonzo postfix/qmgr[5499]: F29D31EB68: from=<>, size=2801, nrcpt=1 (queue active)
Mar 20 10:59:12 gonzo postfix/qmgr[5499]: A698D1B495: removed
Mar 20 10:59:12 gonzo postfix/local[6536]: F29D31EB68: to=<paul@gonzo.dddddd.com>, relay=local, delay=1, status=sent (delivered to mailbox)
Mar 20 10:59:12 gonzo postfix/qmgr[5499]: F29D31EB68: removed
Mar 20 11:00:04 gonzo postfix/pickup[5498]: AA3C31EB68: uid=0 from=<root>
Mar 20 11:00:04 gonzo postfix/cleanup[6529]: AA3C31EB68: message-id=<20060320110004.AA3C31EB68@server1.gonzo.dddddd .com>
Mar 20 11:00:04 gonzo postfix/qmgr[5499]: AA3C31EB68: from=<root@gonzo.dddddd.com>, size=463, nrcpt=1 (queue active)
Mar 20 11:00:05 gonzo postfix/smtp[6530]: warning: relayhost configuration problem
Mar 20 11:00:05 gonzo postfix/smtp[6530]: AA3C31EB68: to=<root@localhost.gonzo.dddddd.com>, orig_to=<root@localhost>, relay=none, delay=1, status=deferred (Host or domain name not found. Name service error for name=dinnae.send.ootside.yet type=AAAA: Host not found)




(Yes, I know the external relay isn't working either, but I'm not worried about that.)
In all the text above, I've replaced my real domain name with "dddddd",
but otherwise it's completely unedited.

The question is, why is the address being rewritten?
It makes it impossible to send email to the users I create.
I don't particularly want it rewritten, and I don't know what I've done that
might make that happen. Any ideas?
Reply With Quote
Sponsored Links
  #2  
Old 20th March 2006, 12:54
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

Can you post the virtusertable again with the real domain names?
What's in /etc/hosts?
Is web5_c2 listed in /etc/passwd?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 20th March 2006, 13:16
confuzzled confuzzled is offline
Junior Member
 
Join Date: Mar 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

OK, here's virtusertable:

###################################
#
# ISPConfig virtusertable Configuration File
# Version 1.0
#
###################################
c2@www.c2.banthewasp.com web5_c2
web5_c2@www.c2.banthewasp.com web5_c2
c2@c2.banthewasp.com web5_c2
web5_c2@c2.banthewasp.com web5_c2
#### MAKE MANUAL ENTRIES BELOW THIS LINE! ####


/etc/hosts is:


#
# hosts This file describes a number of hostname-to-address
# mappings for the TCP/IP subsystem. It is mostly
# used at boot time, when no name servers are running.
# On small systems, this file can be used instead of a
# "named" name server.
# Syntax:
#
# IP-Address Full-Qualified-Hostname Short-Hostname
#

127.0.0.1 localhost

# special IPv6 addresses
::1 localhost ipv6-localhost ipv6-loopback

fe00::0 ipv6-localnet

ff00::0 ipv6-mcastprefix
ff02::1 ipv6-allnodes
ff02::2 ipv6-allrouters
ff02::3 ipv6-allhosts
127.0.0.2 gonzo.banthewasp.com gonzo gonzo.home.banthewasp.com


web5_c2 is listed in /etc/passwd, on the very last line
(which doen not have a return character at the end - I don't know
if that matters).
The end of /etc/passwd looks like this:
admispconfig:x:1003:1003:Administrator ISPConfig:/home/admispconfig:/bin/bash
clamav:x:1004:1004:Clam AntiVirus:/home/clamav:/bin/false
+::::::
web5_c2:x:10005:10005:c2:/home/www/web5/user/web5_c2:/dev/null
Reply With Quote
  #4  
Old 20th March 2006, 23:47
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
 
Default

virtusertable and /etc/passwd are ok, but /etc/hosts isn't. 127.0.0.2 does not exist. Please change the file to

Code:
#
# hosts This file describes a number of hostname-to-address
# mappings for the TCP/IP subsystem. It is mostly
# used at boot time, when no name servers are running.
# On small systems, this file can be used instead of a
# "named" name server.
# Syntax:
#
# IP-Address Full-Qualified-Hostname Short-Hostname
#

127.0.0.1 localhost
 gonzo.banthewasp.com gonzo gonzo.home.banthewasp.com
# special IPv6 addresses
::1 localhost ipv6-localhost ipv6-loopback

fe00::0 ipv6-localnet

ff00::0 ipv6-mcastprefix
ff02::1 ipv6-allnodes
ff02::2 ipv6-allrouters
ff02::3 ipv6-allhosts
Another problem: c2.banthewasp.com doesn't exist in DNS:

Code:
dig c2.banthewasp.com

; <<>> DiG 9.2.1 <<>> c2.banthewasp.com
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 9057
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;c2.banthewasp.com.             IN      A

;; AUTHORITY SECTION:
banthewasp.com.         10800   IN      SOA     ns1.force9.net. hostmaster.plus.net.uk. 2006031900 14400 1800 604800 86400

;; Query time: 147 msec
;; SERVER: 81.169.163.104#53(81.169.163.104)
;; WHEN: Mon Mar 20 23:46:04 2006
;; MSG SIZE  rcvd: 107
Please change that.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
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 On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Drupal and Apache Rewrite Rules andre Server Operation 10 4th May 2006 21:04
Garbled dns queries bosei Installation/Configuration 8 6th February 2006 22:29
Duplicate virtual hosts bosei General 13 22nd December 2005 17:48
UebiMiau webmail adding @localhostname to email address except first address. Kamran Shah Installation/Configuration 5 11th October 2005 17:01
postfix config jmroth Installation/Configuration 6 18th September 2005 15:58


All times are GMT +2. The time now is 08:33.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.