LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 06-27-2004, 11:30 PM   #1
htm
Member
 
Registered: Mar 2004
Posts: 162

Rep: Reputation: 30
how to do email forwarding with sendmail/POP3??


Folks,

I am using POP3/sendmail, how to use .forward to forward my email
server's received email to my yahoo and/or hotmail accoutn in case
I am travelling?

Thx,
HTM
 
Old 06-28-2004, 08:07 PM   #2
shubb
Member
 
Registered: Oct 2003
Location: San Francisco
Distribution: Slackware 13.37
Posts: 150

Rep: Reputation: 16
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:

user: email_to_forward@domain.com

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.
 
Old 06-29-2004, 10:38 AM   #3
tbeehler
Member
 
Registered: Aug 2003
Location: Washington State, USA
Distribution: Mainly RH 9.0
Posts: 227

Rep: Reputation: 30
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!

Travis Beehler
 
Old 07-16-2004, 08:31 PM   #4
htm
Member
 
Registered: Mar 2004
Posts: 162

Original Poster
Rep: Reputation: 30
it did not forward

I edied /etc/mail/aliases and added the following line

my_user_name: email to my_another_user_name@hotmail.com

and ran newaliases

But I cannot get my email from hotmail after sending a test message,

anything wrong?

Thx,
HTM
 
Old 07-17-2004, 12:10 AM   #5
shubb
Member
 
Registered: Oct 2003
Location: San Francisco
Distribution: Slackware 13.37
Posts: 150

Rep: Reputation: 16
Sorry if I was unclear...

Use this:

username: name@hotmail.com

Drop the "email to"
 
Old 08-19-2004, 04:52 AM   #6
htm
Member
 
Registered: Mar 2004
Posts: 162

Original Poster
Rep: Reputation: 30
It still does forward, why?

Thx,
HTM
 
Old 08-23-2004, 02:37 AM   #7
shubb
Member
 
Registered: Oct 2003
Location: San Francisco
Distribution: Slackware 13.37
Posts: 150

Rep: Reputation: 16
Did you run the command "newaliases" after updating the file? If so, post your aliases file here.
 
Old 08-24-2004, 09:18 AM   #8
Vette73
LQ Newbie
 
Registered: Aug 2004
Posts: 2

Rep: Reputation: 0
That's funny, I have exactly the same problem.

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.

root: vette73@hotmail.com
vette73: vette73@hotmail.com

# Basic system aliases -- these MUST be present
MAILER-DAEMON: postmaster
postmaster: root

# General redirections for pseudo accounts
bin: root
bind: root
daemon: root
games: root
kmem: root
mailnull: postmaster
man: root
news: root
nobody: root
operator: root
pop: root
smmsp: postmaster
sshd: root
system: root
toor: root
tty: root
usenet: news
uucp: root
xten: root

# Well-known aliases -- these should be filled in!
# manager:
# dumper:
 
Old 08-24-2004, 09:47 AM   #9
stormbuster
LQ Newbie
 
Registered: Aug 2004
Location: Latvia, Riga
Posts: 1

Rep: Reputation: 0
E-mail forwarding- on two mail-boxes

Hi, but how I can forward one e-mail to another mail box, but saving e-mail message in my mailbox;

for example i send message to mail@domen.com and copy of this message goes to the another_mail@domen.com.
 
Old 08-24-2004, 06:01 PM   #10
shubb
Member
 
Registered: Oct 2003
Location: San Francisco
Distribution: Slackware 13.37
Posts: 150

Rep: Reputation: 16
What does your mail log file say when you send yourself an email with forwarding turned on? You should get some messages something like this:

Aug 24 15:37:58 server_name sm-mta[5628]: i7OMbwH8005628: from=<username@sourcedomain.com>, size=1203, class=0, nrcpts=1, msgid=<1B8A2DD33C49824F8D9021678C1272130218FEF8@mailserver.sourcedomain.com>, proto=ESMTP, daemon=MTA, relay=mailserver.sourcedomain.com [XX.XX.XX.XX]

Aug 24 15:37:59 server_name sm-mta[5629]: i7OMbwH8005628: to=username@forwarddomain.com, delay=00:00:01, xdelay=00:00:01, mailer=esmtp, pri=31434, relay=server.forwarddomain.com. [YY.YY.YY.YY], dsn=2.0.0, stat=Sent (OK 1093387090)
 
Old 08-24-2004, 06:08 PM   #11
shubb
Member
 
Registered: Oct 2003
Location: San Francisco
Distribution: Slackware 13.37
Posts: 150

Rep: Reputation: 16
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.

username: username, user@domain.com, user@domain2.com

Last edited by shubb; 08-24-2004 at 06:09 PM.
 
Old 08-25-2004, 05:33 AM   #12
Vette73
LQ Newbie
 
Registered: Aug 2004
Posts: 2

Rep: Reputation: 0
@shubb

My maillog has the following entries:

Aug 25 13:07:44 server_name sm-mta[1946]: i7PB7h4a001946: from=<username@sourcedomain.com>, size=1917, class=0, nrcpts=1, msgid=<001001c48a8b$84a59d70$7198e584@law4134>, proto=ESMTP, daemon=IPv4, relay=mailserver.sourcedomain.com [xx.xx.xx.xx]

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'
 
Old 08-26-2004, 08:04 PM   #13
strikeforce
Member
 
Registered: Jan 2004
Posts: 74

Rep: Reputation: 15
Another way is to create a .forward text file and just put your email address in it. Place that file in your home directory.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
email client cant recieve POP3 email johnharry Linux - Networking 8 12-27-2006 04:20 AM
What email program can work with email header on pop3 server TruongAn Linux - Software 0 01-13-2005 11:48 AM
Creating A Second Email Address For Email Account On Sendmail treedstang Linux - Software 1 04-27-2004 10:31 PM
retrieving POP3 email using qmail flan Linux - Networking 8 12-08-2003 10:27 AM
POP3 Email Client for Console elkrammer Linux - Software 2 08-04-2002 05:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration