?
Solved

Fowarding unidentified mail to external host using SME Server 7.3

Posted on 2008-11-02
5
Medium Priority
?
486 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 1500 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

Limited time offer using promo code EXPERTS30

Designed with a wealth of functionality and convenience, ATEN's new Thunderbolt™ 2 Sharing Switch takes your Thunderbolt setup to the next level. Now through September 15, 2017, Experts Exchange members get 30% off the US7220 on the ATEN USA eShop using promo code EXPERTS30.

Question has a verified solution.

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

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.
Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
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.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
Suggested Courses

752 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