Solved

Fowarding unidentified mail to external host using SME Server 7.3

Posted on 2008-11-02
5
482 Views
Last Modified: 2008-11-23
Hi,

we are trying to forward unrecognized mail to an external host from SME Server 7.3 to an IP address of another server. So if the mail address does not exist, it till forward it to another mail server. We cannot find where this needs to be done. Can anyone assist please?
0
Comment
Question by:TBG_Admin
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 19

Expert Comment

by:Gabriel Orozco
ID: 22874055
I believe you can create a catch-all account for your domain, and forward any email falling there to the destination you desire.
edit the .qmail-default file in /var/qmail/alias like
&user@host.com

and all email to non-existen users will fall to .qmail-default and thus to user@host.com

hope this helps
0
 

Author Comment

by:TBG_Admin
ID: 22882386
Redimido,

i do not want the emails to forward to a specific email address. I want the emails to forward to another server which will most likely contain the missing address.
0
 
LVL 19

Expert Comment

by:Gabriel Orozco
ID: 22883471
are you saying there are two servers for the same email domain?

like in "example.com"

server1
  user01@example.com
  user02@example.com
  user03@example.com

server2
  user04@example.com
  user05@example.com

is that right? this is weird since in order to have this working, you should install qmail-ldap which can handle a "home server" for each account and forward emails there.

the easy solution for that scenario, is to add all email accounts in server2 as
server1
  .qmail-user04
  .qmail-user05

each one pointing to
  user04@server2.example.com
  user05@server2.example.com
 
0
 

Author Comment

by:TBG_Admin
ID: 22891224
That is correct. I just want to know if the server can handle forwarding unidentified mail like exchange and most other smtp servers can?
0
 
LVL 19

Accepted Solution

by:
Gabriel Orozco earned 500 total points
ID: 22901023
Qmail-LDAP is able to handle this kind of situations.

if you do not want to install qmail-ldap, then there are some ways you can approach the problem

since qmail checks the actual account exists only when it already received the email, and its at local-delivery step, you should look for projects that REPLACE the local delivery or ENHANCE it.

This page has a lot of approachs. I do not have tested them, but really there are a lot of different projects to do that:
http://web.netdevice.com:9080/qmail/rcptck/

Also, here is a snip of how to do the .qmail-default approach: existing users go to their local accounts, non-existing users fall to .qmail-default, where they are processed:

http://mla.libertine.org/tmda-users/2004-04/msg00072.html

hope that helps
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

It’s a strangely common occurrence that when you send someone their login details for a system, they can’t get in. This article will help you understand why it happens, and what you can do about it.
As cyber crime continues to grow in both numbers and sophistication, a troubling trend of optimization has emerged over the last year.
This Micro Tutorial will demonstrate the easy use of Gmail embedding images in your email so the recipient of your email can view them in context.
This Micro Tutorial demonstrates  how Internet marketers work with competitive analysis data, and a common task in data preparation is creating separate column for domains. You will then extract from a list of URLs.

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question