Solved

Fowarding unidentified mail to external host using SME Server 7.3

Posted on 2008-11-02
5
478 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
  • 3
  • 2
5 Comments
 
LVL 19

Expert Comment

by:Redimido
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:Redimido
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:
Redimido 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Microsoft has released various new features which are capable of handling various tasks. One of these tasks is ‘Migration from pop3 to Exchange Server’. Pop3 data stores various data along mailboxes like contacts, tasks, etc. So, it becomes the need…
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.
The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…
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.

707 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now