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 2nd August 2007, 15:09
stefanr stefanr is offline
HowtoForge Supporter
 
Join Date: Dec 2005
Posts: 48
Thanks: 0
Thanked 1 Time in 1 Post
Default Problem with postfix config (CatchAll,alias)

hi there,

Problem :

1. I have a domain like "domain.com"

2. I have a second domain like "domain.de"

3. I set info@domain.com as a CatchALL email for domain "domain.com", and some other email accounts like 1@domain.com, 2@domain.com. This my own Domain.

4. I set info@domain.de as a CatchALL email for domain "domain.de", this will be forward to xyz@nothostetbyme.info, and some other email accounts like 1@domain.de, 2@domain.de. This not a Domain from me.

5. when i log to my gmx account and i send email to: info@domain.de
--> I receive this mail on my info@domain.com.

6. when i log in with imap to the ispconfig server and send email to: info@domain.de
--> I receive this mail on my info@domain.com also.

7. when i log in with imap to the ispconfig server and send email to: 2@domain.com
--> this email goes to the 2@domain.de


Questions :
i have no ideas for this problem. I look at http://www.howtoforge.com/faq/9_33_en.html but i have no ideas to resolve this problem. I look into the /etc/postfix/main.cf for the $mydomain but i don't find this.

thanks for any help
Stefan
Reply With Quote
Sponsored Links
  #2  
Old 2nd August 2007, 15:12
stefanr stefanr is offline
HowtoForge Supporter
 
Join Date: Dec 2005
Posts: 48
Thanks: 0
Thanked 1 Time in 1 Post
Default my config files

hi,

i will post also my configs:

#cat /etc/postfix/main.cf:
#myorigin = /etc/mailname
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no
append_dot_mydomain = no
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
smtpd_use_tls = yes
smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache
myhostname = mail.rr-netz.de
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = mail.rr-netz.de, quendi.rr-netz.de, localhost
relayhost =
mynetworks = 127.0.0.0/8
mailbox_command =
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = 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,check_policy_service inet:127.0.0.1:60000
smtpd_tls_auth_only = no
smtp_use_tls = yes
smtp_tls_note_starttls_offer = yes
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
home_mailbox = Maildir/
virtual_maps = hash:/etc/postfix/virtusertable
mydestination = /etc/postfix/local-host-names


kind regards

Stefan
Reply With Quote
  #3  
Old 3rd August 2007, 14:08
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,739 Times in 2,574 Posts
Default

What's in /etc/mailname? What are the values of myhostname and mydomain in
Code:
postconf -d
? Are all three values domains that you use for web sites in ISPConfig?

BTW, please comment out the line
Code:
mydestination = mail.rr-netz.de, quendi.rr-netz.de, localhost
in /etc/postfix/main.cf; otherwise you have two mydestination lines.
__________________
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
  #4  
Old 4th August 2007, 00:37
stefanr stefanr is offline
HowtoForge Supporter
 
Join Date: Dec 2005
Posts: 48
Thanks: 0
Thanked 1 Time in 1 Post
Default postconf -d |grep myhostname

Quote:
Originally Posted by falko
What's in /etc/mailname? What are the values of myhostname and mydomain in
Code:
postconf -d
? Are all three values domains that you use for web sites in ISPConfig?

quendi:~# postconf -d |grep myhostname
lmtp_lhlo_name = $myhostname
local_transport = local:$myhostname
milter_macro_daemon_name = $myhostname
mydestination = $myhostname, localhost.$mydomain, localhost
myhostname = quendi.rr-netz.de
myorigin = $myhostname
smtp_helo_name = $myhostname
smtpd_banner = $myhostname ESMTP $mail_name
smtpd_proxy_ehlo = $myhostname

quendi:~# postconf -d |grep mydomain
append_dot_mydomain = yes
mydestination = $myhostname, localhost.$mydomain, localhost
mydomain = rr-netz.de



BTW, please comment out the line
Code:
mydestination = mail.rr-netz.de, quendi.rr-netz.de, localhost
in /etc/postfix/main.cf; otherwise you have two mydestination lines.
ok i have comment out this line...

thanks

Stefan
Reply With Quote
  #5  
Old 7th August 2007, 12:36
stefanr stefanr is offline
HowtoForge Supporter
 
Join Date: Dec 2005
Posts: 48
Thanks: 0
Thanked 1 Time in 1 Post
Default any ideas

Hello falko,

have you seen my output from the "postconf -d" ?
I heave no ideas to fix the problem.

Can you help me to fix this Problem?

kind regards

Stefan
Reply With Quote
  #6  
Old 8th August 2007, 13:33
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,739 Times in 2,574 Posts
Default

Do you use the domain rr-netz.de for a web site and email accounts in ISPConfig?
__________________
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
  #7  
Old 8th August 2007, 21:26
stefanr stefanr is offline
HowtoForge Supporter
 
Join Date: Dec 2005
Posts: 48
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi falko,

yes i do this.. mom

cat /etc/apache2/vhosts/Vhosts_ispconfig.conf

######################################
# Vhost: www.rr-netz.de:80
######################################
#
#
<VirtualHost 88.198.26.239:80>
ServerName www.rr-netz.de:80
ServerAdmin webmaster@rr-netz.de
DocumentRoot /var/www/web1/web
ServerAlias webmail.rr-netz.de mail.rr-netz.de ispconfig.rr-netz.de nagios.rr-netz.de gallery.rr-netz.de ftp.rr-netz.de rr-netz.de forum.rr-netz.de
DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm
ScriptAlias /cgi-bin/ /var/www/web1/cgi-bin/
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
ErrorLog /var/www/web1/log/error.log
AddType application/x-httpd-php .php .php3 .php4 .php5
<Files *.php>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php3>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php4>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php5>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
php_admin_flag safe_mode Off
Alias /error/ "/var/www/web1/web/error/"
ErrorDocument 400 /error/invalidSyntax.html
ErrorDocument 401 /error/authorizationRequired.html
ErrorDocument 403 /error/forbidden.html
ErrorDocument 404 /error/fileNotFound.html
ErrorDocument 405 /error/methodNotAllowed.html
ErrorDocument 500 /error/internalServerError.html
ErrorDocument 503 /error/overloaded.html
AliasMatch ^/~([^/]+)(/(.*))? /var/www/web1/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web1/user/$1/web/$3
RewriteEngine on
RewriteCond %{HTTP_HOST} ^webmail\.rr-netz\.de [NC]
RewriteRule ^/(.*) https://ispconfig.rr-netz.de:81/roundcubemail/$1 [L,R]
RewriteCond %{HTTP_HOST} ^mail\.rr-netz\.de [NC]
RewriteRule ^/(.*) http://www.rr-netz.de/$1 [L,R]
RewriteCond %{HTTP_HOST} ^ispconfig\.rr-netz\.de [NC]
RewriteRule ^/(.*) https://ispconfig.rr-netz.de:81/$1 [L,R]
RewriteCond %{HTTP_HOST} ^nagios\.rr-netz\.de [NC]
RewriteRule ^/(.*) http://88.198.26.239/nagios2/$1 [L,R]
RewriteCond %{HTTP_HOST} ^gallery\.rr-netz\.de [NC]
RewriteRule ^/(.*) http://rr-netz.de/gallery2/$1 [L,R]
RewriteCond %{HTTP_HOST} ^forum\.rr-netz\.de [NC]
RewriteRule ^/(.*) http://rr-netz.de/forum/$1 [L,R]
</VirtualHost>


DNS by ISP

$TTL 86400
@ IN SOA ns1.first-ns.de. postmaster.robot.first-ns.de. (
2007073000 ; serial
14400 ; refresh
1800 ; retry
604800 ; expire
86400 ) ; minimum

@ IN NS robotns3.second-ns.com.
@ IN NS robotns2.second-ns.de.
@ IN NS ns1.first-ns.de.

@ IN A 88.198.26.239
forum IN A 88.198.26.239
ispconfig IN A 88.198.26.239
localhost IN A 127.0.0.1
mail IN A 88.198.26.239
mxmail IN A 85.116.204.95
webmail IN A 88.198.26.239
www IN A 88.198.26.239
ftp IN CNAME www
imap IN CNAME www
loopback IN CNAME localhost
pop IN CNAME www
relay IN CNAME www
smtp IN CNAME www
@ IN MX 10 mail
@ IN MX 50 ns1.hostingkunden.de


pls say if you need more informations.

Stefan
Reply With Quote
  #8  
Old 8th August 2007, 21:35
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,704
Thanks: 819
Thanked 5,321 Times in 4,174 Posts
Default

I guess this might cause your problem:

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

Please change:

mydomain = rr-netz.de

to e.g.:

mydomain = mail.rr-netz.de

and restart postfix.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #9  
Old 9th August 2007, 00:04
stefanr stefanr is offline
HowtoForge Supporter
 
Join Date: Dec 2005
Posts: 48
Thanks: 0
Thanked 1 Time in 1 Post
Default cat /etc/postfix/main.cf

Quote:
Originally Posted by till
I guess this might cause your problem:

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

Please change:

mydomain = rr-netz.de

to e.g.:

mydomain = mail.rr-netz.de

and restart postfix.
Hi till,

i read this and tried, but i wan't work look:

#cat /etc/postfix/main.cf

# Debian specific: Specifying a file name will cause the first
# line of that file to be used as the name. The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname

smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

# TLS parameters
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
smtpd_use_tls = yes
smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache

# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.

mydomain = mail.rr-netz.de
myhostname = mail.rr-netz.de
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
#mydestination = mail.rr-netz.de, quendi.rr-netz.de, localhost
relayhost =
mynetworks = 127.0.0.0/8
mailbox_command =
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = 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,check_policy_service inet:127.0.0.1:60000
smtpd_tls_auth_only = no
smtp_use_tls = yes
smtp_tls_note_starttls_offer = yes
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
home_mailbox = Maildir/
virtual_maps = hash:/etc/postfix/virtusertable
mydestination = /etc/postfix/local-host-names


after /etc/init.d/postfix restart

send an test email form gmx and the mail came also to my account and not to the user.

tail -f /var/log/mail.info

Aug 9 00:02:18 quendi postfix/smtpd[30362]: connect from saale.bnhof.de[88.198.18.104]
Aug 9 00:02:18 quendi postfix/smtpd[30362]: D9265890060: client=saale.bnhof.de[88.198.18.104]
Aug 9 00:02:18 quendi postfix/cleanup[30318]: D9265890060: message-id=<20070809000203.84iibqd4yswgskgo@webmail.bnhof. de>
Aug 9 00:02:18 quendi postfix/qmgr[28289]: D9265890060: from=<ho5082@bnhof.de>, size=1495, nrcpt=1 (queue active)
Aug 9 00:02:18 quendi postfix/cleanup[30318]: DD4E1890065: message-id=<20070809000203.84iibqd4yswgskgo@webmail.bnhof. de>
Aug 9 00:02:18 quendi postfix/smtpd[30362]: disconnect from saale.bnhof.de[88.198.18.104]
Aug 9 00:02:18 quendi postfix/qmgr[28289]: DD4E1890065: from=<ho5082@bnhof.de>, size=1632, nrcpt=1 (queue active)
Aug 9 00:02:18 quendi postfix/local[30322]: D9265890060: to=<web1_001@mail.rr-netz.de>, orig_to=<info@waldorfkindergarten-hof.de>, relay=local, delay=0.02, delays=0.02/0/0/0, dsn=2.0.0, status=sent (forwarded as DD4E1890065)
Aug 9 00:02:18 quendi postfix/qmgr[28289]: D9265890060: removed


i heave no ideas what i do wrong.

kind regards

Stefan
Reply With Quote
  #10  
Old 9th August 2007, 09:51
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,704
Thanks: 819
Thanked 5,321 Times in 4,174 Posts
 
Default

Please make sure that you have "mail.rr-netz.de" in /etc/mailname too.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
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
postfix problems with smtp linkdeb Server Operation 13 15th March 2014 17:58
ISPConfig 2.2.14 released till General 48 19th July 2007 23:46
spamassasin/clamAV not working Daisy Installation/Configuration 32 15th February 2007 00:09
Centos 4.4 32bit Hangs, High Server load 3cwired_com Server Operation 11 16th November 2006 15:47
Verify email setup meekish Installation/Configuration 28 27th October 2006 15:36


All times are GMT +2. The time now is 06:16.


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