mail alias problem


 
Thread Tools Search this Thread
Operating Systems Linux mail alias problem
# 1  
Old 03-09-2010
mail alias problem

Hi all, well i am configuring backuppc for awhile, anyway my current problem is, i set a smarthost, configured the mail to use our ISP smtp server, and its working successfully thanks to ALLAH, now i want to set an alias for mails( it was working when it was using the local smtp server), so the backuppc send mail to backuppc, while my /etc/aliases have backuppc: myexternalmail, but its not working now with the external mail, simply i want backuppc when it mail backuppc its converted to myexternalmail@mydomain.com, is it possible ? and how ?, thanks so much.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Alias problem

Please forgive me if this is too stupid a question as I am fairly new to scripting. I have an alias in my .profile (ksh) like this: alias ff='find . -name $1' The idea is to find all files in current dir and all subdir with the name specified in the param passed. So, I issue the command:... (8 Replies)
Discussion started by: sssccc
8 Replies

2. Red Hat

alias ip problem,i canīt find out solution

hi, we have eth1; in the beginning it was proposed to create from eth1, eth1.2500 and eth1.240. It did not worked cause vlan 1.2500 was not tagged in the switch. so they decided to leave eth1 like a physical interface with eth1.2500 config (removel vlan tag) and create eth1.240 but it did... (0 Replies)
Discussion started by: pabloli150
0 Replies

3. Shell Programming and Scripting

Alias problem with awk command

Hi to all, I'm facing some problems when adding an alias like: #alias list="ls -al | awk '{ print $1, $2, $3, $4, (($5/1048576))"\t", $6, $7, $8, $9 }'" and when I enter: #list I get: Syntax Error The source line is 1. The error context is { print >>> , <<< awk:... (3 Replies)
Discussion started by: enux
3 Replies

4. OS X (Apple)

Problem using a top command alias in my profile

Hi- I am newish to the mac osx unix interface. I want to set up top so that it always displays the username. I can use this command to do this: top -ocpu -P ' PID COMMAND %CPU TIME #TH #PRTS #MREGS RPRVT RSHRD RSIZE VSIZE USER' -p '$aaaa ^bbbbbbbbb $cccc $wwwwwww $ee... (1 Reply)
Discussion started by: mikey11415
1 Replies

5. Shell Programming and Scripting

Problem with alias and invisible text

okay how do i make an alias that has a space in it? for most of my other ones i've simply done within my ~/.bash_profile alias `ls`='ls -laF' but with alias `sudo su`='sh hello.sh' I'm unable to make it work in addition i was wondering how i could allow the user to type in... (1 Reply)
Discussion started by: cleansing_flame
1 Replies

6. UNIX for Dummies Questions & Answers

Alias problem

i'm trying to get the alias alias "sudo su"=`sh script.sh` whats wrong with this and how can i make an alias that has a space in it (1 Reply)
Discussion started by: cleansing_flame
1 Replies

7. UNIX for Dummies Questions & Answers

mail alias

Hi Is there anyway to alias the sending mail address. At the moment I have something like below oracle@devora.db.uk1.inspiredbroadcast.net and I want to do this Legion DW - BIDB.D Is this possible? Also I am trying to attach a file to the mail and have not been successful. Below... (2 Replies)
Discussion started by: colesga
2 Replies

8. UNIX for Dummies Questions & Answers

alias problem

How can I get two commands in one alias? In my exaple it only display the current date. alias two='cal | date' (5 Replies)
Discussion started by: Mattiax
5 Replies

9. 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

10. UNIX for Dummies Questions & Answers

mail problem (NOT Mail or Mail.app)

When I try to use the CLI mail, I get the following error. What's wrong? Welcome to Darwin! % mail root Subject: test test . EOT % /etc/mail/sendmail.cf: line 81: fileclass: cannot open /etc/mail/local-host-names: Group writable directory Do I just need to change the... (1 Reply)
Discussion started by: chenly
1 Replies
Login or Register to Ask a Question
whereami.conf(5)						File Formats Manual						  whereami.conf(5)

NAME
whereami.conf -- configuration file for whereami DESCRIPTION
The whereami.conf file specifies what whereami does on leaving, remaining at or arriving at locations. (Locations are detected by whereami according to specifications in the detect.conf file.) Comments are lines starting with the `#' character. Leading whitespace is ignored on all lines, including comment lines. Other lines are of the form: -location action The action is performed if your system was previously at this location, but is now at another location. =location action The action is performed if your system is now at this location. +location action The action is performed if your system is now at this location, but was previously at another location. !location action The action is performed if your system is not at this location. HELPER SCRIPTS
In addition to the normal commands available within any shell script, whereami includes a number of helper scripts which may be useful. setmailrelay (none | queue [smarthost] | smarthost) Set the mail relay (i.e. smarthost) to "none" if you have a permanent connection, and can send e-mail directly to the recipient's mailserver. If you are not connected, set the relay to "queue" (optionally for a specific smarthost). Or send all mail to a specific smarthost, if that is what you need in this location. setresolver <resolv.conf stanza> The <resolv.conf stanza> should be something like: search localhost mydomain.com nameserver 1.2.3.4 (all on one line) to specify the domain search path and the nameserver to use. If you have resolvconf installed, this script will interface with that to manupulate the /etc/resolv.conf file and control DNS resolution. This is recommended. If you are not using resolvconf, then this will directly rewrite your /etc/resolv.conf file, inserting a section similar to the manner in which DHCP works. setproxy (start | stop | none | <upstream_proxy>) Use this script to reconfigure your local oops or squid proxy server to use a specific upstream proxy, no upstream proxy, or to stop the proxy server completely. The upstream proxy should be specified as "<name or ip> <port>", e.g.: setproxy 192.168.55.3 3128 For a local squid proxy you can optionally also provide a complete set of parameters for the "cache_peer" directive (without the "cache_peer" name itself). See the squid.conf file for full details of this syntax. e.g.: setproxy 192.168.55.3 parent 3128 3140 login=user:password settimezone timezone Use this to set your timezone differently. masqmail_route route_name Use this to reconfigure masqmail to use a different masqmail routing. SEE ALSO
whereami(8), detect.conf(5) Further documentation is available in the /usr/share/doc/whereami directory. FILES
/etc/whereami/whereami.conf The file we are talking about in this here manpage. /etc/whereami/whereiam.sh The script that is built based on the information in this configuration file and then executed by whereami. LIMITATIONS
There should be a configuration program so that the user does not have to do any script programming. AUTHOR
This manual page was written by Andrew McMillan <debian@mcmillan.net.nz> for the Debian GNU/Linux system (but may be used by others). Per- mission is granted to copy, distribute and/or modify this document under the terms of the GPL version 2. whereami.conf(5)