
Hi Is there any way of creating a 'catchall' or a default account that all undelivered mail can go to ? eg if we have 3 user accounts (user1, user2, admin) already set up, but someone sends an email to user3(a)mydomain.com, can sendmail figure out that it doesn't match any existing users and deliver it to admin(a)mydomain.com ? I am using sendmail-8.13.1-3.RHEL4.5 Best Regards N

Firstly it's a bad idea, you should just create accounts you think you might need or are actually mistyped. I too once thought a catchall was a good idea, now several years and many hundreds of thousands of pieces of spam later I don't think so. If your still bent on discussion there is a guide here: Rimu have a howto here: http://rimuhosting.com/support/settingupemail.jsp?mta=sendmail&t=catchall#catchall Good luck, John Narender wrote:
Hi Is there any way of creating a 'catchall' or a default account that all undelivered mail can go to ?
eg if we have 3 user accounts (user1, user2, admin) already set up, but someone sends an email to user3(a)mydomain.com, can sendmail figure out that it doesn't match any existing users and deliver it to admin(a)mydomain.com ?
I am using sendmail-8.13.1-3.RHEL4.5
Best Regards N _______________________________________________ wlug mailing list | wlug(a)list.waikato.ac.nz Unsubscribe: http://list.waikato.ac.nz/mailman/listinfo/wlug

Couple of ways 1) In /etc/mail/mailertable put @dom.ain.org username(a)other.domain.org or if you want to bounce them @dom.ain.org error:nou -- Jodi Thomson Systems Engineer Prophecy Networks Ltd P.O.Box 420 21 Browning Street Napier DDI: +64 6 8243901 Ph: +64 6 9742200 FAX: +64 6 9742201 Mob: +64 21 937684 "Right now I'm having amnesia and deja vu at the same time. I think I've forgotten this before." ________________________________ From: wlug-bounces(a)list.waikato.ac.nz on behalf of John Billings Sent: Tue 11/3/2009 10:31 PM To: Waikato Linux Users Group Subject: Re: [wlug] Sendmail + catchall account Firstly it's a bad idea, you should just create accounts you think you might need or are actually mistyped. I too once thought a catchall was a good idea, now several years and many hundreds of thousands of pieces of spam later I don't think so. If your still bent on discussion there is a guide here: Rimu have a howto here: http://rimuhosting.com/support/settingupemail.jsp?mta=sendmail&t=catchall#catchall Good luck, John Narender wrote:
Hi Is there any way of creating a 'catchall' or a default account that all undelivered mail can go to ?
eg if we have 3 user accounts (user1, user2, admin) already set up, but someone sends an email to user3(a)mydomain.com, can sendmail figure out that it doesn't match any existing users and deliver it to admin(a)mydomain.com ?
I am using sendmail-8.13.1-3.RHEL4.5
Best Regards N _______________________________________________ wlug mailing list | wlug(a)list.waikato.ac.nz Unsubscribe: http://list.waikato.ac.nz/mailman/listinfo/wlug
_______________________________________________ wlug mailing list | wlug(a)list.waikato.ac.nz Unsubscribe: http://list.waikato.ac.nz/mailman/listinfo/wlug

Couple of ways 1) In /etc/mail/mailertable put @dom.ain.org username(a)other.domain.org or 2) if you want to bounce them @dom.ain.org error:nouser "550 User Unknown" cheers -- Jodi Thomson Systems Engineer Prophecy Networks Ltd P.O.Box 420 21 Browning Street Napier DDI: +64 6 8243901 Ph: +64 6 9742200 FAX: +64 6 9742201 Mob: +64 21 937684 "Right now I'm having amnesia and deja vu at the same time. I think I've forgotten this before." ________________________________ From: wlug-bounces(a)list.waikato.ac.nz on behalf of John Billings Sent: Tue 11/3/2009 10:31 PM To: Waikato Linux Users Group Subject: Re: [wlug] Sendmail + catchall account Firstly it's a bad idea, you should just create accounts you think you might need or are actually mistyped. I too once thought a catchall was a good idea, now several years and many hundreds of thousands of pieces of spam later I don't think so. If your still bent on discussion there is a guide here: Rimu have a howto here: http://rimuhosting.com/support/settingupemail.jsp?mta=sendmail&t=catchall#catchall Good luck, John Narender wrote:
Hi Is there any way of creating a 'catchall' or a default account that all undelivered mail can go to ?
eg if we have 3 user accounts (user1, user2, admin) already set up, but someone sends an email to user3(a)mydomain.com, can sendmail figure out that it doesn't match any existing users and deliver it to admin(a)mydomain.com ?
I am using sendmail-8.13.1-3.RHEL4.5
Best Regards N _______________________________________________ wlug mailing list | wlug(a)list.waikato.ac.nz Unsubscribe: http://list.waikato.ac.nz/mailman/listinfo/wlug
_______________________________________________ wlug mailing list | wlug(a)list.waikato.ac.nz Unsubscribe: http://list.waikato.ac.nz/mailman/listinfo/wlug

On Wed, Nov 4, 2009 at 2:41 AM, Jodi Thomson <jodit(a)prophecy.net.nz> wrote:
Couple of ways 1) In /etc/mail/mailertable put @dom.ain.org username(a)other.domain.org
or 2) if you want to bounce them @dom.ain.org error:nouser "550 User Unknown"
cheers
-- Jodi Thomson Systems Engineer Prophecy Networks Ltd P.O.Box 420 21 Browning Street Napier DDI: +64 6 8243901 Ph: +64 6 9742200 FAX: +64 6 9742201 Mob: +64 21 937684
"Right now I'm having amnesia and deja vu at the same time. I think I've forgotten this before."
________________________________ From: wlug-bounces(a)list.waikato.ac.nz on behalf of John Billings Sent: Tue 11/3/2009 10:31 PM To: Waikato Linux Users Group Subject: Re: [wlug] Sendmail + catchall account
Firstly it's a bad idea, you should just create accounts you think you might need or are actually mistyped. I too once thought a catchall was a good idea, now several years and many hundreds of thousands of pieces of spam later I don't think so.
If your still bent on discussion there is a guide here:
Rimu have a howto here:
http://rimuhosting.com/support/settingupemail.jsp?mta=sendmail&t=catchall#catchall
Good luck, John
Narender wrote:
Hi Is there any way of creating a 'catchall' or a default account that all undelivered mail can go to ?
eg if we have 3 user accounts (user1, user2, admin) already set up, but someone sends an email to user3(a)mydomain.com, can sendmail figure out that it doesn't match any existing users and deliver it to admin(a)mydomain.com ?
I am using sendmail-8.13.1-3.RHEL4.5
Best Regards N _______________________________________________ wlug mailing list | wlug(a)list.waikato.ac.nz Unsubscribe: http://list.waikato.ac.nz/mailman/listinfo/wlug
_______________________________________________ wlug mailing list | wlug(a)list.waikato.ac.nz Unsubscribe: http://list.waikato.ac.nz/mailman/listinfo/wlug
_______________________________________________ wlug mailing list | wlug(a)list.waikato.ac.nz Unsubscribe: http://list.waikato.ac.nz/mailman/listinfo/wlug
Ok, thanks for your suggestions. I need to explain it a little more. 1. My server is not a live server and never intended to be live. 2. it is a testing server for Quality Assurance team. what i need that all the mails for the *same domain* with even invalid user should be delivered in the a mailbox. say user1(a)mydomain.com and user2(a)mydomain.com are valid users and now if someone sends a mail to user3(a)mydomain.com then instead of getting "unknown user" it should be delivered to some mailbox say admin(a)mydomain.com when i put an entry in mailer table then surprisingly my testing server stops receiving mails. hope i am able to explain it . --Best regards Narender

thats ok , no issue, my server is a internal testing server. we are free to do any operation on him :) Best regards --Narender On Wed, Nov 4, 2009 at 9:29 AM, Jodi Thomson <jodit(a)prophecy.net.nz> wrote:
when i put an entry in mailer table then surprisingly my testing server stops receiving mails.
Oooops my fault entirely. My apologies
That should be /etc/mail/virtusertable
Not mailertable as earlier stated
Teach me not to respond to email while in a meeting ;)
Cheers Jodi _______________________________________________ wlug mailing list | wlug(a)list.waikato.ac.nz Unsubscribe: http://list.waikato.ac.nz/mailman/listinfo/wlug

Have you looked at using postfix? http://www.postfix.org/ Most people find it easier to use than Sendmail. Good for small local mail servers. Narender wrote:
thats ok , no issue, my server is a internal testing server. we are free to do any operation on him :)
Best regards
--Narender
On Wed, Nov 4, 2009 at 9:29 AM, Jodi Thomson <jodit(a)prophecy.net.nz> wrote:
when i put an entry in mailer table then surprisingly my testing server stops receiving mails.
Oooops my fault entirely. My apologies
That should be /etc/mail/virtusertable
Not mailertable as earlier stated
Teach me not to respond to email while in a meeting ;)
Cheers Jodi _______________________________________________ wlug mailing list | wlug(a)list.waikato.ac.nz Unsubscribe: http://list.waikato.ac.nz/mailman/listinfo/wlug
_______________________________________________ wlug mailing list | wlug(a)list.waikato.ac.nz Unsubscribe: http://list.waikato.ac.nz/mailman/listinfo/wlug

On Wed, Nov 4, 2009 at 9:41 PM, John Billings <john(a)nimhq.net> wrote:
Have you looked at using postfix?
Most people find it easier to use than Sendmail. Good for small local mail servers.
I'm sorry, but the official WLUG-mandated Sendmail replacement suggestion is Exim. What is the world coming to these days? ;)

On Tue, Nov 3, 2009 at 3:01 PM, John Billings <john(a)nimhq.net> wrote:
Firstly it's a bad idea, you should just create accounts you think you might need or are actually mistyped. I too once thought a catchall was a good idea, now several years and many hundreds of thousands of pieces of spam later I don't think so.
If your still bent on discussion there is a guide here:
Rimu have a howto here:
http://rimuhosting.com/support/settingupemail.jsp?mta=sendmail&t=catchall#catchall
Good luck, John
Thanks John Yes i am 100% agree with you, if it would be a live server then i would never thought doing this. It is a testing server just for internal use of QA team. what they need that is any users with the same domain should not bounce back , instead of this it should go to some mailbox. say there are 2 users , user1(a)mydomain.com and user2(a)mydomain.com , and if someone sends a mail to user3(a)mydomain.com then it should not be bounced back, it should go to some mailbox. Best Regards Narender
participants (4)
-
Craig Box
-
Jodi Thomson
-
John Billings
-
Narender