Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
You dont really want to use the .forward file (unless you dont have root access to the system). The best way is to use aliases. Edit the file /etc/mail/aliases, and add the following line:
where "user" is the user on the system, and the email address is the one to forward to. After updating the file, run the command "newaliases" and it will add the aliases to the database.
I agree with Shubb, but I would like to add a thought. You say you want to check your mail while traveling, have you thought about setting up some kind of webmail on your system? That would take care of you having to remember to forward your email all the time. Personally, I installed webmin (www.webmin.com) and use the usermin module to check my email. Just my 2 cents. Hope that helps!
When I send an email to vette73@mydomain.com I receive the mail.
When I try to forward the incomming mail to vette73@hotmail.com, my mail get lost and I will not receive the mail (not in the original mailbox and not in the Hotmailbox.
I use Sendmail v8.12.11 on FreeBSD 4.10
This is my ' aliases' file:
# $FreeBSD: src/etc/mail/aliases,v 1.10.4.7 2003/04/04 06:15:55 gshapiro Exp $
# @(#)aliases 5.3 (Berkeley) 5/24/90
#
# Aliases in this file will NOT be expanded in the header from
# Mail, but WILL be visible over networks.
#
# >>>>>>>>>> The program "newaliases" must be run after
# >> NOTE >> this file is updated for any changes to
# >>>>>>>>>> show through to sendmail.
#
#
# See also RFC 2142, `MAILBOX NAMES FOR COMMON SERVICES, ROLES
# AND FUNCTIONS', May 1997
# Pretty much everything else in this file points to "root", so
# you would do well in either reading root's mailbox or forwarding
# root's email from here.
Stormbuster, you can copy the email to multiple users, so you can add your username in the list for forwards, and it will save a copy locally, or forward to multiple addresses.
Aug 25 13:07:47 server_name sm-mta[1947]: i7PB7h4a001946: to=username@forwarddomain.com, ctladdr=<username@sourcedomain.com> (1001/1001), delay=00:00:03, xdelay=00:00:03, mailer=esmtp, pri=32208, relay=forwarddomain.com. [yy.yy.yy.yy], dsn=2.0.0, stat=Sent ( <001001c48a8b$84a59d70$7198e584@law4134> Queued mail for delivery)
The biggest differences with your example are:
1. In the first entry in 'msgid' you have a number with '@mailserver.sourcedomain.com'. I only have the number.
2. In the first entry you have 'deamon=MTA', I have 'daemon=IPv4'.
3. In the second entry I have 'ctladdr=<username@sourcedomain.com> (1001/1001)', you miss this part.
4. In the second part in 'relay' you have 'relay=server.forwarddomain.com. [YY.YY.YY.YY]', I have 'relay=forwarddomain.com. [YY.YY.YY.YY]' where yy.yy.yy.yy is the correct ip-address.
5. My mail is 'Queued mail for delivery'
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.