Related to my last post in that it is another email issue, but something else I am having a problem with.
Debian Lenny on virtual KVM (32-bit, v5.0.7)
With Postfix it is necessary to have an alias for root, eg: root: someuser
In theory, and as far as I am aware, this can also be something like: root: someone@someaddress.tld
When I use the latter, though, the following happens whenever my system tries to redirect root email messages, but not when I use the root: someuser method in the aliases file (and, yes, I do know to use newaliases after amending the file).
The firewall is not an issue (tested with and without the firewall), nor are the resolvers, and the DNS for accounts on the box is all okay and fully propagated. Also, changing the email address to something like this.address@google.com does not work, either, - same error message.
I have an email alias and I want to capture some items in the email body and put it in a database.
I'm using Linux and Bash. In /etc/aliases I have: bexpense: "|/usr/bin/bexpense"In /usr/bin/bexpense, I have: #!/bin/bash echo $1 $2 >> bexpense.out
If I just run /usr/bin/bexpense with as "bexpense test test" I get "test test" in bexpense.out. If I send email to bexpense@myserver.com, I get a blank line in bexpense.out. How do I get the subject and body of the email?
have some problems in doing my project, my project title is ' in investigate into implementation of certification authority with small network ' ( with using Postfix, openSSL ) and i have builded up two different networks using debian and after that i need to make a mail server, so i configured Postfix and made a mail server, i can send and receive emails on both networks. now i need a shell script on received emails using Postfix, like mail is coming from outside then will go to pipe and there should a script in bash, that will run and check the email and deliver to others, or throw it away some thing like that... here are some links where i was looking
Have tried to setup email aliases in sendmail so I can have multiple address pointing to one linux login. However none of the aliases seem to be accepting mail.
I get the following error message when trying to send to them.
I have tried restarting sendmail, have mapped the /etc/mail/virtusertable across to virtusertable.db with the following command.
Code:
Output of sendmail -bv is as follows and looks correct.
Code:
Have also added new domain into local-host-names file. I am stuck on what is left to check and why the messages are getting bounced back.
Can anyone tell me what the pros and cons are between heirloom-mailx vs mailutils? This is for ubuntu 10.04 LTS. AT this point my only purpose is to use the mail command line program to occasionally send log output to email aliases.
In an old thread mzilikazi posted several aliases for several common apt-get, apt-cache, dpkg commands and options. I thought this was a great idea and adopted my own list. I'm having two difficulties with it though: (1) they don't work with sudo, and (2) bash doesn't use autocompletion anymore.
1. sudo I've placed the aliases in the .bashrc profiles of my user and of root, and logged back in. As root the aliases work. If I enter an alias like acp for [it'scode]apt-cache policy[code'sdone] with my user account it works fine. Sweet sudo, however, apparently doesn't support bash aliases. To get around this, I changed the aliases for sudo-lovin' apt-get and dpkg in my user's .bashrc from [code!]alias agi="apt-get install"[!edoc] to [code!]alias agi="sudo apt-get install"[nocode]. Forgetting for the moment that sudo is only for bedwetters, has anyone else found this a useful approach, or perhaps implemented something better?
2. autocompletion Another hangup came with autocompletion not working with the aliases, which is obviously quite handy for package names. A google I once knew told me a thing or two about that. I don't get down with funky-chunky foreign web scripts I can't interpret... which so far is all of them... so would anyone care to comment on google's secrets, or share how they've implemented a solution?
but I tried to resolve all forms and failed. Want to add some aliases to my system, I put the snippet below in my /etc/profile but nothing happened. Also tried to put in ~/.profile and ~/.bashrc but nothing worked.
What am I doing wrong? ## /etc/profile # Section my own aliases alias cp="cp -ip" alias mv="mv -i" alias rm="rm -i" alias grep="grep --color -i"
Code:alias pms='wmname LG3D && pms'So that PS3 Media Server has a GUI and not just a blank window... this works if run from terminal but not when typed in my menu... how can I get Awesome to use the alias? Using:Code:{ "PS3 Media Server", "wmname LG3D && pms" }doesn't work.
I recently P2V'd a debian box, and the aliases file (/etc/aliases) is no longer working. As the physical machine is still working, this machien has been renamed to buzz1 [from buzz].
I changed /etc/mailname, /etc/exim4/update-exim4.conf.conf [and ran the update-exim4.conf script] and also ran newaliases. however it still does not seem to be applying the aliases file:
Live Physical Machine: buzz:~# exim -bt root@buzz.domain.com R: system_aliases for root@buzz.domain.com R: smarthost for cronjobs@domain.com cronjobs@domain.com <-- root@buzz.domain.com
in that script I create some alias commands an pipe them to a new shell script (called dojas.sh) however after execution of that script , I do not see the aliases jan1 and jan2 in my terminal. Even if I execute the dojas.sh srcipt manually , I do not see the aliases in the alias output of my terminal. The only way I can make the aliases active is do the following : cat dojas.sh copy and paste the alias rules, and they are active in my session. How can I make sure that I can activate aliases and they are active in my terminal from a script ?
Note : I am not interested in .bashrc file, I want them to be active in my current session.
I have /var on it's own partition. Should i direct mail, in /etc/alises, sent to root to my normal local user or will /var end up getting filled up with mail, if i do that?Also:I went on the forums for dynDNS.com, explaining that i was setting up a network that includes a web server and a mail server. They rightly pointed out that i only needed to set up a DNS A record for webserver.dyndns.org. The mail server would be located by this DNS A record, as both machines share the same external I.P address(the external I.P of my ADSL router). So my mail addresses could be me@webserver.dyndns.org. So both machines would be reachable with the same DNS A record, and port-forwarding on my ADSL router would determine which host got which requests. That's what they said i should do for my scenario. Bearing this in mind what should the values of $myhostname, $mydomain, $mydestination and $myorigin be?
My current thoughts, on the simplest way to do this, are:If $myhostname is mailserver.webserver.dyndns.org, then $myorigin can be webserver.dyndns.org, then $mydomain is webserver.dyndns.org and $mydestination has it's DEFAULT setting(mydestination = $myhostname localhost.$mydomain localhost).This the simplest workable approach right?, if not what are the best values for these parameters?.Also I have /var on it's own partition. Should i direct mail, in /etc/alises, sent to root to my normal local user or will /var end up getting filled up with mail, if i do that?
On a small Linux appliance using Busybox to provide the usual suspects, I'd like to create an alias "ll" that would translate to "ls -al" like I'm used to. Apparently, "alias" is not part of Busybox:
Code: > echo $SHELL /bin/sh > ls -al /sbin/sh* lrwxrwxrwx 1 1000 1000 7 Jan 1 2007 /sbin/sh -> busybox > alias ll='ls -al' alias: not found
Fetchmail +sendmail played nice together, until I installed hylafax, and added an alias it requires. I just ran the usual makemap command on aliases to make aliases.db, and that's there the trouble began. Fetchmail appeared to hang, at any email account that had email in it, at the RCPT stage. I finally read the warning at the top of /etc/mail/aliases that says to run newaliases.
How can I get aliases working as root? Here is my Slackware 13.1's /etc/profile file followed by my *Slackware 11's* /etc/profile file [as a comparison]. My Slackware 11's root aliases work in addition to my username ones *without* needing a separate .bashrc in my home dir. In S13.1 I have created a .bashrc for my username and it works fine, but I want those same aliases operating when I'm root, and cannot for the life of me figure how to achieve it.
S13.1 /etc/profile: # /etc/profile: This file contains system-wide defaults used by # all Bourne (and related) shells. # Set the values for some environment variables: export MINICOM="-c on" export MANPATH=/usr/local/man:/usr/man export HOSTNAME="`cat /etc/HOSTNAME`" export LESSOPEN="|lesspipe.sh %s" export LESS="-M" # If the user doesn't have a .inputrc, use the one in /etc.....
I am running KDE and currently using Konsole as my terminal emulator. I am finding that if I start a konsole from the menu list I can type alias and see a list of default aliases plus the ones I have define in my .bash_login file.
The problem seems to occur on restarting KDE. I generally leave everything open and when KDE restarts everything comes back. Saves me having to do it myself.
Unfortunately when the konsoles pop up they no longer have the aliases. There will be none of the predefined ones, nor the ones that I have defined.
Would I be better off using a more standard alternative like xterm in this case or is this something that has a simple explanation?
I suspect it has something to do with not being a login shell. If I look at the Profile in the menu for the konsole it specifically says "/bin/bash -l" for the command on the new one that I opened up, but "/bin/bash" for the one that was automatically brought back.
Is there some reason KDE would do this? Running Slackware 13.1 64 bit. KDE 4.4.3
My system is F13 (upgraded from F11) with all of the latest patches available. I haven't gone through and combined all of the rpmnew configuration files, but none of them seem to address networking.I'm trying to get subinterfaces (secondary IP addresses) to work in Fedora 13. So far, I have been able to configure them on the command line, but not to get them to persist on booting.My base address for the NIC is: A.B.C.254. It is statically assigned.
Output of my #alias command looks just as normal as one would expect: Code: alias +='pushd .' alias -='popd' alias ..='cd ..' alias ...='cd ../..' .....
And still whenever I (as root) type in bash #ll which would be short for #ls- l i get output of the command #ls -al
So where aliases for root overwritten? Usually I would expect .bashrc in the /root directory. Or at least .alias file. But there none of those in my current /root. So, my question is where root user gets it's aliases from? This concerns only root user. Normal user has .bashrc and I made up my own aliases in .alias and that's works jut fine. And yes I could make .bashrc file in the /root and .aliases where I would define my own things.
So I checked the /etc/bash.bashrc file and it doesn't have the if [ -f ~/.bash_aliases ]; then . ~/.bash_aliases fi
I expected it to. So I checked the The /usr/share/base-files, and there it is. Problem is, it isn't part of the system wide bash, or is it? How do I activate the bash_aliases in Lucid Lynx? Quick un-related question. Is ./ = /.??
I would like to create some aliases for bash shell. On other Unix/Linux machines I have done this using the alias command like this: alias rm rm -i
When I type that into a terminal on Ubuntu, it looks like alias is not installed. I get this:
bash: alias: rm: not found bash: alias: rm: not found bash: alias: -i: not found
I tried adding the alias to .bashrc instead, but then I get the same error message every time I start terminal. Just for fun I tried apt-get install alias, just to see what would happen, and it installed something called libperl-alias instead, and alias still doesn't work.
I installed postfix on my ubuntu server.I have created some users.How can I create e-mail aliases?For example, I have a user named "light" and I want to create for him an e-mail address.
I sent a mail to an aliases group from MS office 2003/2007 outlook. But every reciepient got four copies for that mail. It also occured another aliase group. The mail is configured in Linux Postfix.
Not really a linux specific thing I have gooled the heck out of it and tried nslookup -a and a few other options nothing gets me what I need. The question is I have a machine with several aliases in dns. How do I do a nslookup and display all the aliases for a system.
I am trying to see if something it aliased correctly but i cannot list all the names a system is know by.
I am sure its something simple I am missing with a switch.