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
  #11  
Old 21st June 2007, 16:52
nox171 nox171 is offline
Member
 
Join Date: Dec 2006
Posts: 54
Thanks: 0
Thanked 0 Times in 0 Posts
Default

This is the log from postfix:

Code:
Jun 21 15:14:24 server1 postfix/pickup[9647]: D5E4125405A: uid=30 from=<wwwrun>
Jun 21 15:14:24 server1 postfix/cleanup[10861]: D5E4125405A: message-id=<20070621141424.D5E4125405A@server1.serverdomain.com>
Jun 21 15:14:24 server1 postfix/qmgr[22433]: D5E4125405A: from=<wwwrun@server1.serverdomain.com>, size=1470, nrcpt=1 (queue active)
Jun 21 15:14:24 server1 postfix/pickup[9647]: EBFAA254058: uid=30 from=<wwwrun>
Jun 21 15:14:24 server1 postfix/cleanup[10861]: EBFAA254058: message-id=<20070621141424.EBFAA254058@server1.serverdomain.com>
Jun 21 15:14:25 server1 postfix/qmgr[22433]: EBFAA254058: from=<wwwrun@server1.serverdomain.com>, size=1458, nrcpt=1 (queue active)
Jun 21 15:14:25 server1 postfix/local[10865]: D5E4125405A: to=<not_info@hosteddomain.com>, relay=local, delay=1, status=bounced (unknown user: "not_info")
Jun 21 15:14:25 server1 postfix/cleanup[10861]: 2677D25405F: message-id=<20070621141425.2677D25405F@server1.n1hosts.com>
Jun 21 15:14:25 server1 postfix/local[10868]: EBFAA254058: to=<web25_info@server1.serverdomain.com>, orig_to=<info@hosteddomain.com>, relay=local, delay=1, status=sent (delivered to command: /usr/bin/procmail -f-)
Jun 21 15:14:25 server1 postfix/qmgr[22433]: EBFAA254058: removed
As you can see the email to info@hosteddomain.com has been delivered with no problem (because now it is in ISPConfig and the "External Mailserver" has been enabled), but the other email to not_info@hosteddomain.com has not (because the user doesn't exist in ISPConfig)

I really need a solution for this, if anyone has an idea please tell me!

Last edited by nox171; 21st June 2007 at 16:55.
Reply With Quote
Sponsored Links
  #12  
Old 22nd June 2007, 13:31
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 contents of /etc/postfix/local-host-names and /etc/postfix/virtusertable? What's the output of
Code:
postconf -n
?

There must be an email account for not_info@hosteddomain.com on the receiving 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
  #13  
Old 22nd June 2007, 13:53
nox171 nox171 is offline
Member
 
Join Date: Dec 2006
Posts: 54
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I'm sorry but for privacy reasons I can't post here the content of /etc/postfix/local-host-names and /etc/postfix/virtusertable
Maybe if you tell me what I have to look for...

This is the output for

postconf -n:

Code:
server1:~ # postconf -n
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 = myhosts.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
Of course there is an account for not_info@hosteddomain.com on the receiving mail server but, as I can understand, postfix just looks inside without trying to send the email. It thinks to be the mailserver. It looks for the user and cannot find it. So I, as a postmaster, receive the email of not delivery report with "user unknow" as error.

Making a practical example:

this is the shop address: shop.examplegift.com
shop owner email address: bookings.examplegift.com
client1 email address (generic): client1@genericmail.com
clent2 email address (same company): client2@examplegift.com


Case 1:
Someone with a generic email address (client1) registers himself on the OSCommerce shop.
When he purchases something there are two emails sent. One email is sent to the shop owner and the other to the client.
Mail to the owner: OK (since I've added the user on ISPConfig - see previous post)
Mail to client1: OK

Case 2:
Someone from the same shop's company, or someone else for whom i'm hosting the website on the same server, purchases anything this is what happens:

Mail to owner: OK
Mail to client2: postmaster receives the NDR (user unknow)


I hope that the picture of the situation is clearer now.
This is really odd and for me, not a good linux user , it is very difficult to fix something like that.

Thanks

Last edited by nox171; 23rd June 2007 at 23:16.
Reply With Quote
  #14  
Old 23rd June 2007, 21:05
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

Code:
virtual_maps = hash:/etc/postfix/virtusertable
is still missing in /etc/postfix/main.cf. Please add it and restart Postfix (I mean 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
  #15  
Old 23rd June 2007, 22:06
daveb daveb is offline
Senior Member
 
Join Date: Dec 2006
Location: St Louis Mo
Posts: 272
Thanks: 43
Thanked 41 Times in 37 Posts
Default

nox171 did your customer setup in oscommerce admin to send from the user "email address" hosted on your server or from one of their existing users "email address"
Reply With Quote
  #16  
Old 28th June 2007, 18:49
nox171 nox171 is offline
Member
 
Join Date: Dec 2006
Posts: 54
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have created the email address in ISPCofig and then enabled the "external Mailserver" funcion, but the user is not hosted on my mailserver.

Falko I tried the command again as you suggest:
Code:
server1:~ # postconf -e 'virtual_maps = hash:/etc/postfix/virtusertable'
server1:~ # /etc/init.d/postfix restart
Shutting down mail service (Postfix)                                 done
Starting mail service (Postfix)                                      done
server1:~ #
but then looking in it I still don't see the /etc/postfix/virtusertable!
Code:
server1:~ # postconf -n
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 = n1hosts.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
Do you know why??
Reply With Quote
  #17  
Old 29th June 2007, 18:22
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 add
Code:
virtual_maps = hash:/etc/postfix/virtusertable
manually to /etc/postfix/main.cf then and restart Postfix?
__________________
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
  #18  
Old 2nd July 2007, 17:17
nox171 nox171 is offline
Member
 
Join Date: Dec 2006
Posts: 54
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I opened the file but the virtusertable line was already there!


Someone can tell me what's going on here??
Reply With Quote
  #19  
Old 3rd July 2007, 15: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

Can you run
Code:
updatedb
locate main.cf
and post the output?
How did you install Postfix? Did you use your distribution's package, or did you compile it yourself?
__________________
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
  #20  
Old 3rd July 2007, 16:06
nox171 nox171 is offline
Member
 
Join Date: Dec 2006
Posts: 54
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

here the output
Code:
/etc/postfix/main.cf
/etc/postfix/main.cf.default
/etc/postfix/main.cf.orig
/etc/postfix/main.cf.SuSEconfig
/var/adm/backup/postfix/main.cf
/var/adm/SuSEconfig/md5/etc/postfix/main.cf
I didn't install the box, it has been done by the previous IT manager.
It should be a normal installation of ISPConfig following the how to in this forum.
The distro is a suse.

Last edited by nox171; 5th July 2007 at 15:27.
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 11:24
Postfix not honoring email aliases for local delivery rneilson Installation/Configuration 24 22nd March 2007 11:12
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
Second server cannot send email to own domain (hosted on first server) benbalbo Installation/Configuration 20 12th April 2006 05:54


All times are GMT +2. The time now is 07:37.


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