Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 7th September 2006, 00:02
Sheridan Sheridan is offline
Junior Member
 
Join Date: Jun 2006
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy Mails are always sent to the server admin mail address. Making me crazy. :-(

Hi to all here.

I've now three domains on my server and the for the first domain mail delivery is working very well.
The problem now is, that every mail sent to another domain on this server will be sent to admin@digital-solution.cc which forwards this to a bunch of users mailboxes. I now tried to enter two other domains, but the result is always the same.

I'm not sure but the postfix files below seems to look ok:

[/etc/postfix/local_host_names]
Code:
localhost
web01.digital-solution.cc
localhost.web01.digital-solution.cc
localhost.digital-solution.cc
localhost.localdomain
www.digital-solution.cc
www.apert-syndrom.at
www.matthias-stuben.at
digital-solution.cc
apert-syndrom.at
matthias-stuben.at
[/etc/postfix/virtusertable]
Code:
admin@www.digital-solution.cc    web1_admin
web1_admin@www.digital-solution.cc    web1_admin
@www.digital-solution.cc    web1_admin
admin@digital-solution.cc    web1_admin
web1_admin@digital-solution.cc    web1_admin
@digital-solution.cc    web1_admin
mschuetz@www.digital-solution.cc    web1_mschuetz
web1_mschuetz@www.digital-solution.cc    web1_mschuetz
mschuetz@digital-solution.cc    web1_mschuetz
web1_mschuetz@digital-solution.cc    web1_mschuetz
admin@www.matthias-stuben.at    web3_admin
web3_admin@www.matthias-stuben.at    web3_admin
admin@matthias-stuben.at    web3_admin
web3_admin@matthias-stuben.at    web3_admin
office@www.matthias-stuben.at    web3_office
web3_office@www.matthias-stuben.at    web3_office
office@matthias-stuben.at    web3_office
web3_office@matthias-stuben.at    web3_office
mschuetz@www.matthias-stuben.at    web3_mschuetz
web3_mschuetz@www.matthias-stuben.at    web3_mschuetz
mschuetz@matthias-stuben.at    web3_mschuetz
web3_mschuetz@matthias-stuben.at    web3_mschuetz

[/etc/postfix/main.cf]
Code:
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no
append_dot_mydomain = no
myhostname = web01.digital-solution.cc
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydomain = localhost
mydestination = /etc/postfix/local-host-names
relayhost =
mynetworks = 127.0.0.0/8
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
smtpd_sasl_local_domain =
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination
smtpd_tls_auth_only = no
smtp_use_tls = yes
smtpd_use_tls = yes
smtp_tls_note_starttls_offer = yes
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom

virtual_maps = hash:/etc/postfix/virtusertable

mydestination = /etc/postfix/local-host-names
I've now checked everything i could imagine to be the problem, but i still don't have any clue what the problem or misconfiguration is.

I hope that anyone here can bring some light into the darkness. ;-)


many thanks anyway
Sheridan

Last edited by Sheridan; 7th September 2006 at 20:39.
Reply With Quote
Sponsored Links
  #2  
Old 7th September 2006, 10:34
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 34,586
Thanks: 792
Thanked 4,983 Times in 3,903 Posts
Default

Please have a look at the FAQ:

http://www.howtoforge.com/faq/9_33_en.html
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 7th September 2006, 15:23
Sheridan Sheridan is offline
Junior Member
 
Join Date: Jun 2006
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by till
Please have a look at the FAQ:

http://www.howtoforge.com/faq/9_33_en.html

Hi Till.
Thanks for your help.
I've set the mydomain param in /etc/postfix/main.cf to localhost, but that didn't fix the problem.

Here is the part of the mail.log that show's the way of one of the test mails. Sorry that i've forgot to post it in the first post here, but it was late yesterday. ;-)

Code:
Sep  7 15:15:21 web01 postfix/pickup[19964]: C8C9478C2F7: uid=10011 from=<web1_mschuetz>
Sep  7 15:15:21 web01 postfix/cleanup[19986]: C8C9478C2F7: message-id=<20060907131521.C8C9478C2F7@web01.digital-solution.cc>
Sep  7 15:15:21 web01 postfix/qmgr[19965]: C8C9478C2F7: from=<web1_mschuetz@digital-solution.cc>, size=417, nrcpt=1 (queue active)
Sep  7 15:15:22 web01 postfix/local[19992]: C8C9478C2F7: to=<admispconfig@localhost.localdomain>, relay=local, delay=1, status=sent (delivered to command: /usr/bin/procmail -f-)
Sep  7 15:15:22 web01 postfix/qmgr[19965]: C8C9478C2F7: removed
Sep  7 15:15:27 web01 postfix/local[19990]: 7A9AF78C2F5: to=<web1_rkainzbauer@digital-solution.cc>, orig_to=<office@matthias-stuben.at>, relay=local, delay=6, status=sent (delivered to command: /usr/bin/procmail -f-)
Sep  7 15:15:27 web01 postfix/local[19991]: 7A9AF78C2F5: to=<web1_mschuetz@digital-solution.cc>, orig_to=<office@matthias-stuben.at>, relay=local, delay=6,
status=sent (delivered to command: /usr/bin/procmail -f-)
Sep  7 15:15:27 web01 postfix/qmgr[19965]: 7A9AF78C2F5: removed
I don't know why the reciever address is admispconfig@localhost.localdomain. The rest is clear as this address doesn't exist on my sys he delivers it to the default mail address which is the on that forwards it's mails to some other mailboxes.

Looks like a typical case of "pebkac".


many thanks for any idea
Sheridan
Reply With Quote
  #4  
Old 7th September 2006, 19:27
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

Quote:
Originally Posted by Sheridan
I don't know why the reciever address is admispconfig@localhost.localdomain.
It's explained here: http://www.howtoforge.com/forums/sho...ost+statistics
__________________
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
  #5  
Old 7th September 2006, 20:54
Sheridan Sheridan is offline
Junior Member
 
Join Date: Jun 2006
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by falko
Ah. Many thanks for the link Falko. That's the mail for the ispconfig traffic statistic. Very nice idea.

Any ideas why it forwards all messages sent to other domains then the first and main one to the main mail address of the server admin?

I absolutely don't have a clue why postfix is doing this.
By the way, i'm using debian sarge and installed it following the perfect setup guide.

greets & thanks
Sheridan
Reply With Quote
  #6  
Old 7th September 2006, 21:13
Sheridan Sheridan is offline
Junior Member
 
Join Date: Jun 2006
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Here is the complete mail.log block to corresponds to my last try.

Code:
Sep  7 21:10:24 web01 postfix/smtpd[14958]: connect from 85-125-151-110.dynamic.xdsl-line.inode.at[85.125.151.110]
Sep  7 21:10:24 web01 postfix/smtpd[14958]: setting up TLS connection from 85-125-151-110.dynamic.xdsl-line.inode.at[85.125.151.110]
Sep  7 21:10:24 web01 postfix/smtpd[14958]: TLS connection established from 85-125-151-110.dynamic.xdsl-line.inode.at[85.125.151.110]: TLSv1 with cipher RC4-MD5 (128/128 bits)
Sep  7 21:10:24 web01 postfix/smtpd[14958]: A45C378C48A: client=85-125-151-110.dynamic.xdsl-line.inode.at[85.125.151.110], sasl_method=PLAIN, sasl_username=web1_mschuetz
Sep  7 21:10:24 web01 postfix/cleanup[14960]: A45C378C48A: message-id=<1157656218.4778.10.camel@localhost.localdomain>
Sep  7 21:10:25 web01 postfix/qmgr[13042]: A45C378C48A: from=<mschuetz@digital-solution.cc>, size=15759, nrcpt=1 (queue active)
Sep  7 21:10:25 web01 postfix/cleanup[14960]: 0EFED78C48B: message-id=<1157656218.4778.10.camel@localhost.localdomain>
Sep  7 21:10:25 web01 postfix/qmgr[13042]: 0EFED78C48B: from=<mschuetz@digital-solution.cc>, size=15912, nrcpt=2 (queue active)
Sep  7 21:10:25 web01 postfix/local[14962]: A45C378C48A: to=<web1_admin@digital-solution.cc>, orig_to=<office@matthias-stuben.at>, relay=local, delay=1, status=sent (forwarded as 0EFED78C48B)
Sep  7 21:10:25 web01 postfix/qmgr[13042]: A45C378C48A: removed
Sep  7 21:10:25 web01 postfix/smtpd[14958]: disconnect from 85-125-151-110.dynamic.xdsl-line.inode.at[85.125.151.110]
Sep  7 21:10:25 web01 postfix/pickup[13041]: 3BA0678C48D: uid=10011 from=<web1_mschuetz>
Sep  7 21:10:25 web01 postfix/cleanup[14960]: 3BA0678C48D: message-id=<20060907191025.3BA0678C48D@web01.digital-solution.cc>
Sep  7 21:10:25 web01 postfix/qmgr[13042]: 3BA0678C48D: from=<web1_mschuetz@digital-solution.cc>, size=418, nrcpt=1 (queue active)
Sep  7 21:10:25 web01 postfix/pickup[13041]: 3D1FA78C48A: uid=10012 from=<web1_rkainzbauer>
Sep  7 21:10:25 web01 postfix/cleanup[14960]: 3D1FA78C48A: message-id=<20060907191025.3D1FA78C48A@web01.digital-solution.cc>
Sep  7 21:10:25 web01 postfix/qmgr[13042]: 3D1FA78C48A: from=<web1_rkainzbauer@digital-solution.cc>, size=430, nrcpt=1 (queue active)
Sep  7 21:10:25 web01 postfix/local[14962]: 3BA0678C48D: to=<admispconfig@localhost.localdomain>, relay=local, delay=0, status=sent (delivered to command: /usr/bin/procmail -f-)
Sep  7 21:10:25 web01 postfix/qmgr[13042]: 3BA0678C48D: removed
Sep  7 21:10:25 web01 postfix/local[15000]: 3D1FA78C48A: to=<admispconfig@localhost.localdomain>, relay=local, delay=0, status=sent (delivered to command: /usr/bin/procmail -f-)
Sep  7 21:10:25 web01 postfix/qmgr[13042]: 3D1FA78C48A: removed
Sep  7 21:10:30 web01 postfix/local[14964]: 0EFED78C48B: to=<web1_rkainzbauer@digital-solution.cc>, orig_to=<office@matthias-stuben.at>, relay=local, delay=5, status=sent (delivered to command: /usr/bin/procmail -f-)
Sep  7 21:10:31 web01 postfix/local[14963]: 0EFED78C48B: to=<web1_mschuetz@digital-solution.cc>, orig_to=<office@matthias-stuben.at>, relay=local, delay=6, status=sent (delivered to command: /usr/bin/procmail -f-)
Sep  7 21:10:31 web01 postfix/qmgr[13042]: 0EFED78C48B: removed
What the hell did i messed up again?


many thanks anyway
Sheridan
Reply With Quote
  #7  
Old 8th September 2006, 10:34
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 34,586
Thanks: 792
Thanked 4,983 Times in 3,903 Posts
Default

Please have a look at the FAQ I posted above:

http://www.howtoforge.com/faq/9_33_en.html

You need a technical domain that is NOT localhost.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #8  
Old 8th September 2006, 18:04
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

Use a domain in /etc/postfix/main.cf that you don't use for web sites and email, etc.
__________________
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
  #9  
Old 8th September 2006, 19:50
edge edge is offline
Moderator
 
Join Date: Dec 2005
Location: The Netherlands
Posts: 2,033
Thanks: 260
Thanked 145 Times in 127 Posts
Default

falko,

The problem I have is that for some reason I'm getting spam mail that is send to domains that I'm hosting. (I'm as in root)
The spam is send to non existing users of the domains that are hosted on my server.

I have no clue how they do it, as when I send an email (from an email account that is not on the server) to the same addres the spammer did, it get bounced!

Anyway.. Are you suggesting to use any myhostname? Like a non existing one?

Now lets say my hostname is:
Code:
#hostname
host.domainname.tld
My /etc/postfix/main.cf the myhostname is set to:
myhostname = mail.domainname.tld

When I change this to lets say host.domainname.tld, the mail will never arrive at a hotmail account.

I think it will be the same if I set it to a non existing domainname.
Reply With Quote
  #10  
Old 8th September 2006, 20:08
Sheridan Sheridan is offline
Junior Member
 
Join Date: Jun 2006
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

Quote:
Originally Posted by falko
Use a domain in /etc/postfix/main.cf that you don't use for web sites and email, etc.
Thanks for this hint again, but it didn't fix the problem.
I'm now using the domain of a friend of mine where only two A records are pointing to my machine for use as dns-server entries.
Anyway. I've sorted out something else.

Afte unchecking the "CatchAll" of the admin@digital-solution.cc mail address, postfix still forwards the mail which has been originally sent to office@matthias-stuben.at but to web3_office@digital-solution.cc now.
web3_office is the correct user but the digital-solution.cc domain name isn't correct here. The correct target mail address should be web3_office@matthias-stuben.at.

Where the does he get the information that he should forward it to web3_office@digital-solution.cc?


Any entries in the virtusertable corresponding to web3 can be found below:
Code:
admin@www.matthias-stuben.at    web3_admin
web3_admin@www.matthias-stuben.at    web3_admin
admin@matthias-stuben.at    web3_admin
web3_admin@matthias-stuben.at    web3_admin

office@www.matthias-stuben.at    web3_office
web3_office@www.matthias-stuben.at    web3_office
office@matthias-stuben.at    web3_office
web3_office@matthias-stuben.at    web3_office

mschuetz@www.matthias-stuben.at    web3_mschuetz
web3_mschuetz@www.matthias-stuben.at    web3_mschuetz
mschuetz@matthias-stuben.at    web3_mschuetz
web3_mschuetz@matthias-stuben.at    web3_mschuetz

Last edited by Sheridan; 8th September 2006 at 20:13.
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
php Apps email not going through palkat General 8 21st September 2011 05:35
Statistic not working mzo Installation/Configuration 49 20th April 2011 12:19
Core 4: Error Messages on Fresh Install re CTX/SSL jjw Installation/Configuration 30 6th September 2006 12:16
Can not recieve mail with de virtual mail adress Mounir Installation/Configuration 9 24th July 2006 23:16
Virtual Users And Domains With Postfix, Courier And MySQL (+ SMTP-AUTH, Quota, SpamAs ebbay Installation/Configuration 9 4th March 2006 11:47


All times are GMT +2. The time now is 23:53.


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