Ubuntu Servers :: Nut Can't Use Mailutils "mail" Command?
Feb 5, 2011
So I installed and configured nut. used the help of 2 tutorials, [URL].. But I got most of just reading the comments in the /etc/nut configfiles and modifying them as described there (tut's where slightly outdated) .
So I pull out the plug and nothing happens. The script I invoke with the nut user returns a execute error 127 (shows in daemon.log). So I execute the command (with argument) as my user, and that works. when executing it as the nut user I get.
Code:
Cannot open `/root/.mailrc': Permission denied
This because I invoke a mail command by the script.
Code:
echo "Spanning is weg! Da spel wordt hier afgesloten als de batterie plat is!" | /usr/bin/mail -s"UPS monitor" mutrax@localhost
So My question is simple. How do I get nut mailing without to much risk? It'll probeably be something simple, but I don't want to grant evry troublesom thing admin rights. Anyway, If someone is intrested how I configured nut, I'll be glad to post it here.
View 1 Replies
ADVERTISEMENT
Jan 25, 2011
I recently upgrade my server from Jaunty to Lucid. The mail command no longer works for my scripts, so I installed mailutils. However, when I try to run mail, it doesn't seem to find it:
Code:
/home/frank# apt-get install mailutils
Reading package lists... Done
Building dependency tree
Reading state information... Done
[Code]...
View 2 Replies
View Related
Jul 15, 2010
I have installed the package mailutils by following command:
sudo apt-get install mailutils
Now I want to send mail using the following format:
$mail <username>@gmail.com
I am doing the normal procedures but the mail is not sent.
View 1 Replies
View Related
Jan 27, 2011
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.
View 2 Replies
View Related
Dec 6, 2010
ok I have installed and configured postfix to setup a mail directory to $HOME/Maildir
when I check ls Maildir/new there is mail there but when I run the command it outputs "No Mail"?
View 7 Replies
View Related
Feb 15, 2010
i want to send mail from unix mail command to my yahoo-id with attachment, but i want to receive it as attachment.
View 1 Replies
View Related
Nov 19, 2010
I'm running SUSE linux Server version 11. I want to configure mail server with postfix & cyrus-imap. For that, i have read many documents in Internet by i met issues. I'm running DNS in this server & it's ok Now I cannont send mail through command line.
[Code]....
View 9 Replies
View Related
May 6, 2010
My courier server cannot recieve mail.
My freebsd installation has worked for quite some time w/o problems.
I'm using ubuntu as a replacement and have tried using the same settings from my previous server.
I keep getting the following error.
courieresmtpd:
View 1 Replies
View Related
Aug 3, 2011
Our primary mail server is Exchange 2003 Standard on Windows Server 2003 Standard - don't shout at me; I inherited it already set up this way.I have a couple of hardware identical redundant servers (HP ML350 boxes), all with very fast 2 or 4 disk arrays, multiple core CPUs and plenty of memory, and I am looking at two potential new additions to the infrastructure.
A secondary mail server is high on my list of priories. I've been well and truly bitten by Exchange in the past and given that this particular box has been running four years straight and that it's mail store is dangerously large, having a secondary mail server in place suddenly makes a lot of sense.
A new Exchange 2010 box is currently being set up, but the secondary mail server will remain in place even when the new Exchange server is brought online, so this won't be a wasted exercise.... I also want a gateway box in place to filter and relay mail to the primary server, or to the secondary server if the primary is unavailable. Currently our outer perimeter is:
ISP supplied CISCO router
Draytek VigorPro 5510 UTM
Untangle running in bridged mode (primarily used for SPAM filtering, URL blacklisting, and very little else) Exchange 2003 sits behind the Untangle box. This is how I want to end up:
CISCO >> Draytek >> Ubuntu gateway >> Exchange/secondary mail server
I know I could replace/remove the Draytek but I want it to remain for several reasons, including lots of VPN dial-in users already configured and that it offers us an additional layer of email antivirus scanning before things hit the Exchange box. No point switching all of our remote workers over to new tunnels unnecessarily...
I have done some research and have started testing a pilot secondary mail server using Ubuntu/postfix DNS is properly set up and MX records and reverse PTR records are all present and correct, and things are looking encouraging so far. Before I go out over deep waters and start to flounder, has anyone who has done something like this got any obvious howlers I should be looking to avoid ?
View 2 Replies
View Related
Jun 30, 2011
I set up my mail server using the guide here: [URL] I am able to receive mail, I can send mail locally, but I can't send to external addresses. This is in my mail.log: Quote: Jun 30 14:40:43 Server postfix/smtp[10725]: 2FD9322015BF: to=<myemail@gmail.com>, relay=none, delay=1634, delays=1484/0.02/150/0, dsn=4.4.1, status=deferred (connect to alt4.gmail-smtp-in.l.google.com[74.125.65.27]:25: Connection timed out)
This is my main.cf:
[Code]...
View 6 Replies
View Related
Jan 12, 2011
The scenario: We have an external server that runs HTTP/DB servers for out shop system. Then, there's our local, in-house infrastructure that runs a.. yeah... Exchange 2010. The shop system on the external server needs to send mails to customers (order confirmations, invoices, etc.). seing as sending them directly through the local MTA (Postfix) would cause mail delivery problems because of reverse DNS issues, i've set the Postfix MTA to act as a satellite to our in-house Exchange Server, so the Exchange sends the mail instead, giving recipient mail servers a valid reverse DNS lookup.
Now, mails sent by the (proprietary, uneditable) shop system are relayed correctly and sent to the target e-mail address. My problem is: Mails not sent by the shop system, but by our own PHP scripts which run on that same external servers, are NOT relayed properly. So the Exchange is fine with the mails sent by the shop system, but not the mails sent by our scripts. This is what i get in the mail.log: The successfully relayed mail sent by the shop system:
[Code]....
View 2 Replies
View Related
Aug 6, 2010
Two exchange servers internally. One is setup for example.com (192.168.1.10) and the other is setup for example2.com (192.168.1.20) Both are behind a single public IP.
I want to use postfix to sit in front of the two exchange servers. Postfix will accept mail for both domains and relay to the appropriate server. I have postfix installed with only defaults at this point.
View 2 Replies
View Related
Nov 3, 2010
I have a problem relate to posttfix.I want to mirgare postfix mail server to exchange 2010 mail server but I can't do it,u can help me.You can show me have to do configure postfix and exchange how to?
View 1 Replies
View Related
Jul 13, 2010
I am trying to send e-mail from command line by using "mail" in fedora. It goes to e-mail server in the same network but it is refused by other outside this network with message: "..... Connection refused by name@yahoo.com ......
View 1 Replies
View Related
Mar 10, 2011
How do I make a local mail server that itself is a client to a WAN mail server.I want the local mail server to query new mail every 30 minutes from the WAN server.
View 6 Replies
View Related
May 26, 2010
I handle several hundreds of domains. Mails are handled with google apps (but previously I used to have a full postfix/courrier setup with virtualhosting). Now what I need is to be able to send mail (newsletter etc...) from my web servers, but I don't need to receive mail on these servers.
View 4 Replies
View Related
Jan 5, 2010
I have kubuntu 9.10 and I would like to configure Ubuntu to can send mail from command line with mailx. I've saw that I need to install a MTA. But I don't know wich install and how.
I follow this tutorial:
[URL]
But when I try to send a message, in the mail.log says me:
Code:
Jan 5 10:21:33 david postfix/smtp[3795]: 41AEA41DBE: to=<pepelu@gmail.com>, relay=alt1.gmail-smtp-in.l.google.com[209.85.223.73]:25, delay=1086, d
elays=1022/0.01/32/32, dsn=4.7.0, status=deferred (host alt1.gmail-
[Code].....
View 3 Replies
View Related
Feb 23, 2010
I tried testing mail from the command line as I've never used it.
Code:
It sits there and does nothing. I waited ten minutes...still nothing. Killed the firewall, same gig. Obviously this is user error but what I'm doing wrong is unknown to me.
View 7 Replies
View Related
Apr 27, 2010
I'm running Ubuntu Server 9.10 and every time that I su in as root and run a command, I get a little message after saying:
"You have mail in /var/mail/root"
And in fact, I do have mail in there, it's mail that I would like to keep for future reference. How can I suppress the message though?
View 1 Replies
View Related
Nov 3, 2010
how can i use mail command? i mean i know its syntax and its options but when i try to send an email from my console to a hotmail account of mine i get nothing. do i have to set a mail server or something? and if so where can i find some more info?
View 4 Replies
View Related
Jan 27, 2011
I have just got myself up and running on a ubuntu 32 bit server with postfix using this guide here [URL]...at-ispconfig-3 and everything is working great ( i didnt install ispconfig )
I want to get a command line mail client running but I am having some permission issue.
sudo aptitude install heirloom-mailx
then when i type mail this happens
mail
/var/mail/jj: Permission denied
i also tried mutt etc but always get permission denied.
View 6 Replies
View Related
Jun 18, 2011
I'm trying to configure sending mail from my site under Ubuntu 10.04 LTS.I have installed LAMP and postfix. To test mail I created the file test.php with code:
PHP Code:
$to = 'mymail@gmail.com';
$subject = 'The subject';
[code]....
View 1 Replies
View Related
Nov 29, 2010
I recently became responsible for a server running Ubuntu 10.04. I am trying to figure out how its outbound mail service is setup. Everything is working fine now, I just want to document how it is setup so if I need to rebuild the box I can do so without too much trouble when the pressure is on. It is a pretty basic setup, the only outbound mail gets sent from php scripts, the server does not receive incoming messages. Is there a place I can look to see what service is sending outgoing messages?
View 2 Replies
View Related
Dec 18, 2010
I am trying to install a mail server (postfix). I followed the instructions (up until SMTP, I do not want that) on ubuntu pages, without any result. I can send mail, but I can't get any.
View 4 Replies
View Related
Feb 9, 2011
I'm new to linux and trying to solve this problem. I have followed the perfect server 10.10 setup and I have got a basic page up and running. If I use the IP address of the server /webmail I can log in, if I use the .com/webmail I can't log in and get this error. code...
This is my output of ls -la /var/lib/squirrelmail/data/ code...
View 9 Replies
View Related
Feb 17, 2011
I have several forms created on my server. I'm running Ubuntu server 10.04.
I was running Ubuntu server 10.10 up until Tuesday Night. I decided to go to Ubuntu Server 10.04 in favor of the long term support of it.
While running Ubuntu server 10.10 all my forms worked and would send the form data to my email without issue.
Now after transfer the site to Ubuntu 10.04 I'm not getting any of the email messages. I have verified my email works by sending a test email directly to the account.
View 5 Replies
View Related
Mar 3, 2011
I have setup a mail server on my remote Ubuntu 10.04 server using postfix.
Using Putty to SSH to the server, I can send mail, check mail, and the server accepts mail from other domains (gmail, yahoo, hotmail etc).
However, I cannot seem to send mail using PHP functions.
I have created a "test.php" file with the following contents:
[Code].....
When I run the .php file, nothing happens, and nothing logs in the mail logs, so I'm sure the server doesnt understand the mail command in PHP files, but I'm not sure how to go about fixing it.
Apache2, PHP5, postfix, and the additional necessaries are installed (this is a webserver/mailserver on 1 box)
View 9 Replies
View Related
Feb 5, 2010
I'm getting this error today for some strange reason. I got this mornings updates and installed them, everything was going fine and suddenly I got that. I've been sending and receiving all day, and even checked my email addy on the admin control panel end of my domain
View 2 Replies
View Related
Jun 4, 2015
I ran this command from terminal.
Code: Select allmail -s "Test Subject" example@yahoo.com < /dev/null
Got error on command line:
Code: Select allsend-mail: Authorization failed (534 5.7.14 https://support.google.com/mail/answer/78754 ng13sm2265977pdb.82 - gsmtp)
ssmtp configuration file:
Code: Select allroot=ssmtpmailtesting@gmail.com
mailhub=smtp.gmail.com:587
#rewriteDomain=
hostname=mybox
UseSTARTTLS=YES
AuthUser=ssmtpmailtesting@gmail.com
AuthPass=[mypassword]
FromLineOverride=YES
View 1 Replies
View Related
Dec 5, 2010
Despite what the man page says, and what I have read out on the web, I cannot get the mail command to let me change the "from address"
I have tried to change the reply address (-R my@address.com)
I have tried to change the from address (-f my@address.com)
..... and so on
Anyone have any luck, from the command line (as I am setting up cron jobs) in changing the "from" address?
echo test | mail -s "This is a test" user@domain.com (this is the basic command I wish to use, but change the "from address")
View 9 Replies
View Related