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
  #21  
Old 22nd September 2006, 13:30
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,749 Times in 2,579 Posts
Default

What's in your mail log when you send a mail locally and from an external mail server?
__________________
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
Sponsored Links
  #22  
Old 22nd September 2006, 15:02
shiidii shiidii is offline
Member
 
Join Date: Jul 2006
Location: Melbourne, Australia
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Here's the successful internal sending
Code:
Sep 22 21:50:11 mailserver postfix/pickup[11230]: 1845731299B: uid=33 from=<www-data>
Sep 22 21:50:11 mailserver postfix/cleanup[13208]: 1845731299B: message-id=<20060922115011.1845731299B@mailserver.mydomain.com>
Sep 22 21:50:11 mailserver postfix/qmgr[24929]: 1845731299B: from=<www-data@mailserver.mydomain.com>, size=507, nrcpt=1 (queue active)
Sep 22 21:50:11 mailserver postfix/pickup[11230]: 52D2C31299C: uid=10019 from=<web1_sales>
Sep 22 21:50:11 mailserver postfix/cleanup[13208]: 52D2C31299C: message-id=<20060922115011.52D2C31299C@mailserver.mydomain.com>
Sep 22 21:50:11 mailserver postfix/local[13210]: 1845731299B: to=<web1_sales@mailserver.mydomain.com>, orig_to=<sales@mydomain.com>, relay=local, delay=0, status=sent (delivered to command: /usr/bin/procmail -f-)
Sep 22 21:50:11 mailserver postfix/qmgr[24929]: 1845731299B: removed
Sep 22 21:50:11 mailserver postfix/qmgr[24929]: 52D2C31299C: from=<web1_sales@mailserver.mydomain.com>, size=394, nrcpt=1 (queue active)
Sep 22 21:50:11 mailserver postfix/local[13210]: 52D2C31299C: to=<admispconfig@localhost>, relay=local, delay=0, status=sent (delivered to command: /usr/bin/procmail -f-)
Sep 22 21:50:11 mailserver postfix/qmgr[24929]: 52D2C31299C: removed
Take note that I sent the email to sale@mydomain.com.. and as you can see here it reads as web1_sales@mailserver.mydomain.com
I'm unsure why it automatically FWDs to admispconfig@localhost

Here's the bounced email.
Code:
Sep 22 21:50:53 mailserver postfix/smtpd[13249]: connect from py-out-1112.google.com[64.233.166.181]
Sep 22 21:50:54 mailserver postfix/smtpd[13249]: 349F631299A: client=py-out-1112.google.com[64.233.166.181]
Sep 22 21:50:54 mailserver postfix/cleanup[13254]: 349F631299A: message-id=<7c9681600609220456n3fa91351v1d3f50e414805e38@mail.gmail.com>
Sep 22 21:50:54 mailserver postfix/qmgr[24929]: 349F631299A: from=<shiidii.at.gmail.com>, size=1301, nrcpt=1 (queue active)
Sep 22 21:50:54 mailserver postfix/local[13210]: 349F631299A: to=<sales@mydomain.com>, relay=local, delay=1, status=bounced (unknown user: "sales")
Sep 22 21:50:54 mailserver postfix/cleanup[13208]: BAEEB31299C: message-id=<20060922115054.BAEEB31299C@mailserver.mydomain.com>
Sep 22 21:50:54 mailserver postfix/qmgr[24929]: BAEEB31299C: from=<>, size=3028, nrcpt=1 (queue active)
Sep 22 21:50:54 mailserver postfix/qmgr[24929]: 349F631299A: removed
Thanks for you time!

Last edited by shiidii; 22nd September 2006 at 15:05.
Reply With Quote
  #23  
Old 22nd September 2006, 15:11
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,001
Thanks: 840
Thanked 5,650 Times in 4,460 Posts
Default

Please post the content of /etc/postfix/virtusertable and /etc/postfix/main.cf (comments stripped).
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #24  
Old 22nd September 2006, 17:01
shiidii shiidii is offline
Member
 
Join Date: Jul 2006
Location: Melbourne, Australia
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Main.cf
Code:
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
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 = mailserver.mydomain.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
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
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
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

virtual_maps = hash:/etc/postfix/virtusertable

masquerade_domains = mailserver.mydomain.com !mailserver.mydomain.com
masquerade_exceptions = root
Virtusertable
Code:
sales@www.mydomain.com    web1_sales
web1_sales@www.mydomain.com    web1_sales
sales@mailserver.mydomain.com    web1_sales
web1_sales@mailserver.mydomain.com    web1_sales
sales@mydomain.com    web1_sales
web1_sales@mydomain.com    web1_sales
user@www.mydomain.com    web1_user
web1_user@www.mydomain.com    web1_user
user@mailserver.mydomain.com    web1_user
web1_user@mailserver.mydomain.com    web1_user
user@mydomain.com    web1_user
web1_user@mydomain.com    web1_user
user2@www.mydomain.com    web1_user2
web1_user2@www.mydomain.com    web1_user2
user2@mailserver.mydomain.com    web1_user2
web1_user2@mailserver.mydomain.com    web1_user2
user2@mydomain.com    web1_user2
web1_user2@mydomain.com    web1_user2
Nothing seems out of place.
Reply With Quote
  #25  
Old 22nd September 2006, 19:05
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,001
Thanks: 840
Thanked 5,650 Times in 4,460 Posts
 
Default

virtusertable and main.cf are ok, the account sales@mydomain.com exists and points to the user web1_sales.

Please try to remove the masquerading:

masquerade_domains = mailserver.mydomain.com !mailserver.mydomain.com
masquerade_exceptions = root
__________________
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
Statistic not working mzo Installation/Configuration 49 20th April 2011 13:19
Howto suggestion suse PhP ver 4 + Ver 5 wwparrish Suggest HOWTO 11 7th August 2006 14:29
php script injections Grizzly General 21 18th July 2006 09:55
configuring IPTABLES firewall adityavpratap HOWTO-Related Questions 9 27th May 2006 22:42
Cannot receive emails skeeta Installation/Configuration 18 22nd April 2006 17:02


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


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