Setup @mydomain.com mail

Hi all

Hi can I setup that all mail send to x@mydomain.com will be accepted.

How can I setup which ones are recognized and all that

And if I want to redirect redirect@mydomain.com to redirected@otherdomain.com


Linux version: Fedora Test 3


With kind regards




Ramses (x_terminat_or_3)
LVL 2
x_terminat_or_3Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

garak1357Commented:
This depends upon what software you are using for your mail server.  I recommend ditching Sendmail which is installed by default on most every Linux flavor in favor of Qmail.  You can find step by step instructions for every major Linux flavor at:

http://www.qmailrocks.org

Hope this helps.
0
x_terminat_or_3Author Commented:
Garak, I just invested 12$ on a book on sendmail.  Could you give me the WHY I should ditch sendmail?
0
ridCommented:
"Hi can I setup that all mail send to x@mydomain.com will be accepted."

You need to have a registered domain name and you need to have an MX record in the DNS entry for your domain name. Talk to whomever holds your DNS.
/RID
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

x_terminat_or_3Author Commented:
You need to have a registered domain name --> I HAVE
and you need to have an MX record in the DNS entry for your domain name --> HAVE ALSO

Talk to whomever holds your DNS --> That takes up to a week to get a reply...  hence my question here
0
ridCommented:
If the DNS issue is OK, you don't need to talk to them...

The rest is sendmail configuration. If you have a book on the program, you should use it. Sendmail is powerful, but not as easy to set  up as e.g. Postfix.

I suppose you need to look at whatever firewall is involved here, allowing port 25 traffic and such.
/RID
0
x_terminat_or_3Author Commented:
yeah but I mean I just started it and it is going to take a while before I digested all of it.  You mean sendmail can handle ALL the things I want?
0
255x4Commented:
__Begin Quote__
yeah but I mean I just started it and it is going to take a while before I digested all of it.  You mean sendmail can handle ALL the things I want?
__End Quote__

Yes.

Please see:

http://www.experts-exchange.com/Operating_Systems/Linux/Q_20892544.html

for something like this.  I think the problem you have right now is that sendmail is either a)not running, or b)running but is not actually doing much of anything for you.

Most of the work you want, is to be done in the /etc/mail/aliases file.  When you finish editing the file, you just issue the newaliases command that that finishes it.

Here is an example aliases file for you:
x: x
redirect: redirected@otherdomain.com
*: /dev/null

This will send x@mydomain.com to the user x, redirect@mydomain.com to redirected@otherdomain.com and everything else to /dev/null (a null set of registers which might increase the entropic state of the universe, but we don't care about that right now).

Thanks,

255x4
0
x_terminat_or_3Author Commented:
4F

So

*: undefined@otherdomain.com

will send all unrecognized mails to undefined@otherdomain.com right?

But what happens with the mail that's accepted.  Is it placed in the /var/spool/mail folder?
0
255x4Commented:
Well, it depends on which mail delivery system you use.  Sendmail in and of itself does not care how mail is delivered locally, it only hands it off to a program.

This is defined by the configuration file's Mlocal setting.  This works for all local accounts (like root or X or whatever) while Mprog is used to launch a program for delivery that is non-local.

Look and see if you have /usr/lib/mail.local, if not, then look for /bin/mail, maybe even wheris deliver, or whereis procmail.  The /bin/mail is an older delivery system while /usr/lib/mail.local is a more common system, with deliver and procmail alternatives.  Procmail is what we use here at work on the email server for filtering out spam (as best we can) and other delivery options.

If worse come to worse and you have none of those programs, then you can always tell sendmail to append the emails to a file in aliases:

x: /home/x/mail

This would tell sendmail to put all email to x@themachine into the /home/x/mail file.  You can make this any file you want.

Thanks,

255x4
0
x_terminat_or_3Author Commented:
FF FF FF FF (255x4)

do you mean that sendmail also acts as receiver for mails that come from internet?  Like if you send a mail to blabla@mydomain.com and the dns has an mx pointing to 69.110.xx.xx (me) ... the message will be received by 'sendmail' ?
0
255x4Commented:
Yes.

See, sendmail sits waiting for incoming connections as a SMTP server.  This means people trying to send out from the machine and other machines trying to send to your machine.  Sendmail doesn't care which direction the mail is going.  If the mail is for local delivery, the Mlocal applies, if not, then it depends on if:

a) it is local going out
b) from another machine going elsewhere and that machine is included in the RELAYS file

From those two, it depends on the format (tcp/ip, uucp, etc).

So, to answer your question, yes, it acts as the receiver for mail on the internet, but just SMTP kinda receiving, not POP3 for you to get your emails from another machine.

Thanks,

255x4
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
x_terminat_or_3Author Commented:
Thanks for letting me understand better
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.