Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 13th June 2007, 18:46
nox171 nox171 is offline
Member
 
Join Date: Dec 2006
Posts: 54
Thanks: 0
Thanked 0 Times in 0 Posts
Default how to configure postfix to send email out for a hosted domain

Hiya all,

i'm having a problem with my Suse server.
I've installed on it ISPConfig with several websites.

Also i've an OScommerce installation running on it...
Let me describe my scenario:

a user is buying something on the shop.
When the purchase is done, oscommerce send a confirmation email to the user.
Everything is fine but not if the user's email domain is hosted on the server.

ie:
demouser@externalhost.com purchase something -> email sent correctly.
demouser@hosteddomain.com purchase something -> the postmaster (myself) receive a bouceback like this:
Code:
 The e-mail system was unable to deliver the message, but did not report a specific reason.  Check the address and try again.  If it still fails, contact your system administrator.
            < server1.xxxxxxx.com #5.0.0 X-Postfix; unknown user: "demouser">
I think the mailserver is not sending the email because the email domain address is hosted on the server.
The point is that the domain has not the mailserver on my server but the client is managing it. The MX server is outside the ISPConfig server...

I hope everything is clear...
How can I configure postfix to look outside the server and send the email??

thanks
/nox
Reply With Quote
Sponsored Links
  #2  
Old 14th June 2007, 18:00
nox171 nox171 is offline
Member
 
Join Date: Dec 2006
Posts: 54
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Any idea??
Reply With Quote
  #3  
Old 14th June 2007, 22:43
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
Default

Does demouser@hosteddomain.com exist in /etc/postfix/virtusertable? What's the output of
Code:
postconf -n
?
__________________
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 15th June 2007, 11:59
nox171 nox171 is offline
Member
 
Join Date: Dec 2006
Posts: 54
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi falko,
inside the vitusertable there isn't that user.

This is the output postconf -n:

Code:
alias_maps = hash:/etc/aliases
biff = no
broken_sasl_auth_clients = yes
canonical_maps = hash:/etc/postfix/canonical
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/lib/postfix
debug_peer_level = 2
defer_transports =
disable_dns_lookups = no
disable_mime_output_conversion = no
html_directory = /usr/share/doc/packages/postfix/html
inet_interfaces = all
inet_protocols = all
mail_owner = postfix
mail_spool_directory = /var/mail
mailbox_command =
mailbox_size_limit = 0
mailbox_transport =
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
masquerade_classes = envelope_sender, header_sender, header_recipient
masquerade_domains =
masquerade_exceptions = root
message_size_limit = 10240000
mydestination = /etc/postfix/local-host-names
mydomain = myserverhosts.com
myhostname = server1.$mydomain
newaliases_path = /usr/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/packages/postfix/README_FILES
relayhost =
relocated_maps = hash:/etc/postfix/relocated
sample_directory = /usr/share/doc/packages/postfix/samples
sender_canonical_maps = hash:/etc/postfix/sender_canonical
sendmail_path = /usr/sbin/sendmail
setgid_group = maildrop
smtp_sasl_auth_enable = no
smtp_tls_note_starttls_offer = yes
smtp_use_tls = yes
smtpd_client_restrictions =
smtpd_helo_required = no
smtpd_helo_restrictions =
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,check_relay_domains
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
smtpd_sasl_security_options = noanonymous
smtpd_sender_restrictions = hash:/etc/postfix/access
smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtpd_tls_auth_only = no
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
smtpd_use_tls = yes
strict_8bitmime = no
strict_rfc821_envelopes = no
tls_random_source = dev:/dev/urandom
transport_maps = hash:/etc/postfix/transport
unknown_local_recipient_reject_code = 550
Ta

Last edited by nox171; 15th June 2007 at 12:10.
Reply With Quote
  #5  
Old 15th June 2007, 15:35
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
Default

/etc/postfix/virtusertable isn't included in your Postfix configuration. Please run
Code:
postconf -e 'virtual_maps = hash:/etc/postfix/virtusertable'
/etc/init.d/postfix restart
And then you must create the email address demouser@hosteddomain.com in ISPConfig, because if it doesn't exist, you can't send to it.
__________________
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
  #6  
Old 15th June 2007, 17:37
nox171 nox171 is offline
Member
 
Join Date: Dec 2006
Posts: 54
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Sorry, but I'm not getting that.

Why OSCommerce can send email to "users@nothosteddomain.xxx" and cannot to "@hosteddomain.xxx" ?
Just to be clear the client has just pointed one A Record on my server.
They have their own server for the website and for the email as well.

They are pointing to my server for shop.clientdomain.xxx

Thanks!
Reply With Quote
  #7  
Old 19th June 2007, 14:21
nox171 nox171 is offline
Member
 
Join Date: Dec 2006
Posts: 54
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by falko
/etc/postfix/virtusertable isn't included in your Postfix configuration. Please run
Code:
postconf -e 'virtual_maps = hash:/etc/postfix/virtusertable'
/etc/init.d/postfix restart
And then you must create the email address demouser@hosteddomain.com in ISPConfig, because if it doesn't exist, you can't send to it.
I'm worried to do some changes to the actual configuration of the entire server because I've got a lot of website on it and they are working all fine.

So I'd like to be really sure before do anything.

I just need ISPConfig to be able to send the email to a @hosteddomain.xxx email address but without looking inside "himself".
Because, of course the user do not exists on the localhost. The email address is hosted somewhere else, where the real mailserver is.

Is there a way to do it?
Because now you gave me 2 information and I'm not sure witch way I should take.


For example if I create the user in ISPConfig and enable the "External Mailserver" option will it send the email without looking inside the server for the user?

Thanks!!
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 prevent all users of a virtual domain to send emails dimitar Installation/Configuration 0 4th June 2007 12:24
Postfix not honoring email aliases for local delivery rneilson Installation/Configuration 24 22nd March 2007 12:12
Centos 4.4 32bit Hangs, High Server load 3cwired_com Server Operation 11 16th November 2006 16:47
Verify email setup meekish Installation/Configuration 28 27th October 2006 16:36
Second server cannot send email to own domain (hosted on first server) benbalbo Installation/Configuration 20 12th April 2006 06:54


All times are GMT +2. The time now is 13:45.


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