Sponsored Content
Full Discussion: Forwarding Mail in AIX 5.3
Top Forums UNIX for Dummies Questions & Answers Forwarding Mail in AIX 5.3 Post 302418708 by zaxxon on Wednesday 5th of May 2010 06:39:16 AM
Old 05-05-2010
Yes man mail says where your mailbox is located but not where .forward has to be located. From your first description it seemed like you have placed .forward to /var/spool/mail since you wrote that you placed it where your mailbox is located.
Anyway, does it work now or not?
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

E-mail forwarding

Hi, I would like to set up an E-mail forwarding service like Netaddress whereby users would be able to create an E-mail account in my domain name and have all the mail sent to that account forwarded to an alternate address they specify. I know that I can redirect mail sent to my domain using... (1 Reply)
Discussion started by: BigBro
1 Replies

2. UNIX for Dummies Questions & Answers

Forwarding Mail from Unix account

I have a simple question. i have an e-mail account with an ISP on a Solaris box. I want to forward all the mail that comes to "only" me to another POP3 account. I used to have the commands written down on how to forward all but I have lost them. Is there a way to forward only e-mails that... (2 Replies)
Discussion started by: jsillers
2 Replies

3. UNIX for Dummies Questions & Answers

Sendmail - forwarding mail

quick question. I have a webserver that has various scripts for user registration and ect on it. I want to post (mail) these to myself - however I am a bit stuck on how to configure sendmail to do this. The hosting partner that I use has provided me with the use of their relay to send on the... (1 Reply)
Discussion started by: warrend
1 Replies

4. UNIX for Advanced & Expert Users

Forwarding mail with sendmail

Hello, I need to forward mail wich are in some users mailbox. The .forward redirection is working for all new mails but not for old. Is someone know how to do this ? Thanks (2 Replies)
Discussion started by: annececile
2 Replies

5. UNIX for Dummies Questions & Answers

.forward and alias mail forwarding questions

I am trying to configure sendmail to forward email to a PHP script. I don't know UNIX and am having trouble figuring out how to forward the mail. I think this is just a bunch of basic questions, but I have had little luck getting help elsewhere on my specific questions and it's driving me nuts. You... (3 Replies)
Discussion started by: bitt3n
3 Replies

6. IP Networking

Mail forwarding in small network with mailserver

Hi, My small network consists of a mail server(postfix) and 2 clients. I want to configure the clients so that all the mail they send is sent through the mailserver. I want to forward all outgoing mail to the mail server. How should I configure the clients to achieve this? Thanks for... (1 Reply)
Discussion started by: hjallebk
1 Replies

7. UNIX for Dummies Questions & Answers

Unix mail forwarding

Hi Everyone, I am an intermediate to Unix.I want to forward the incoming messages for my Unix Account 'pdileep' to another mail account 'pdileep@ncmail.com'. I tried out .forward option,but the forwarded message was not there in my Unix Account. My requirement is like,i want to forward... (6 Replies)
Discussion started by: DILEEP410
6 Replies

8. Solaris

mail forwarding

Hello everybody, I have solaris 10 running on SF v890, I need to forward some sepecific root mails resulted from some application, (or all root mails) to other machine running Solaris 10 also. does it have anything to do with mail relay, or just change the log settings??? Thanks in Advance... (1 Reply)
Discussion started by: aladdin
1 Replies

9. AIX

Forwarding already received mail?

Greetings to all of you. I am a tad desperate here. I have found MANY articles scattered across the internet from google searches and unix.com searches for how to forward mail that say: Create a ~/.forward file and put XXXX in it. This is not what I need to do. We have bunch of users... (1 Reply)
Discussion started by: DennisC31
1 Replies

10. UNIX for Dummies Questions & Answers

Forwarding mail via Pine

I am asking about my work account, running Linux on a system server. On pine, I set up a forward to another email account. I also keep a copy in the original account. The forward has been running fine for some time. I believe the system sends the mail first to the forwarded account and then puts... (0 Replies)
Discussion started by: BLabel
0 Replies
MAILOCK(3)						     Linux Programmer's Manual							MAILOCK(3)

NAME
maillock, mailunlock, touchlock - manage mailbox lockfiles SYNOPSIS
#include <maillock.h> cc [ flag ... ] file ... -llockfile [ library ] int maillock( const char *user, int retrycnt ); void mailunlock( void ); void touchlock( void ); DESCRIPTION
The maillock function tries to create a lockfile for the users mailbox in an NFS-safe (or resistant) way. The algorithm is documented in lockfile_create(3). The mailbox is typically located in /var/mail. The name of the lockfile then becomes /var/mail/USERNAME.lock. If the environment variable $MAIL is set, and it ends with the same username as the username passed to maillock(), then that file is taken as the mailbox to lock instead. There is no good way to see if a lockfile is stale. Therefore if the lockfile is older then 5 minutes, it will be removed. That is why the touchlock function is provided: while holding the lock, it needs to be refreshed regulary (every minute or so) by calling touchlock () . Finally the mailunlock function removes the lockfile. RETURN VALUES
maillock returns one of the following status codes: #define L_SUCCESS 0 /* Lockfile created */ #define L_NAMELEN 1 /* Recipient name too long (> 13 chars) */ #define L_TMPLOCK 2 /* Error creating tmp lockfile */ #define L_TMPWRITE 3 /* Can't write pid int tmp lockfile */ #define L_MAXTRYS 4 /* Failed after max. number of attempts */ #define L_ERROR 5 /* Unknown error; check errno */ NOTES
These functions are not thread safe. If you need thread safe functions, or you need to lock other mailbox (like) files that are not in the standard location, use lockfile_create(3) instead. These functions call lockfile_create(3) to do the work. That function might spawn a set group-id executable to do the actual locking if the current process doesn't have enough priviliges. There are some issues with flushing the kernels attribute cache if you are using NFS - see the lockfile_create(3) manpage. FILES
/var/mail/user.lock, /usr/lib/liblockfile.so.1 AUTHOR
Miquel van Smoorenburg <miquels@cistron.nl> SEE ALSO
lockfile_create(3), lockfile_touch (3), lockfile_remove(3) Linux Manpage 28 March 2001 MAILOCK(3)
All times are GMT -4. The time now is 11:45 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy