Ubuntu Servers :: Sendmail Goes To Wrong Address When Triggerd By Cron?
Mar 17, 2010
I wrote/cobbled-together this nifty sendmail script to read some logs and take some disk stats. basically i'm reporting on rsnapshot. When I run it as
Code:
sudo /etc/rsnapshot/mailSta.sh
Everything works wonderful and the emails arrive as expected and fires off an email to two accounts at a remote server
View 1 Replies
ADVERTISEMENT
Apr 29, 2011
Can anyone tell me how i change the default domain name for cron?everything i cron runs it emails from and to user@com.com
this leaves me with a massive list of failed mails in postfix.i have mailto on my main crontab but i cant do it on all of them.
View 1 Replies
View Related
Jun 15, 2011
I have bees assigned a problem which states that :
sendmail-2: Wrong number of instances of process sendmail:, expected instances equal 1 but found 0
THats it...what exactly this means and how should i proceed for solving this problem...
View 1 Replies
View Related
Apr 5, 2010
I have a ubuntu server 9.10 installed with exim4 as MTA. I configured a mail address on it (let's say me@example.com). Before i had it working i had a other email configured (let's say me_2@example.com). At the time i had this one it didn't work i removed exim4.
Now i can successfully send mails with it by the configured me@example.com. I also configured the password for this, but when i receive the mail the old configured mail is presented as "from" (so from: me_2@example.com).
Anyone knows how this can be changed so it says the mail is from me@example.com? The mail is not an alias, and in a mail client they work separately.
View 4 Replies
View Related
Jun 16, 2011
I'm running xmail 1.26 on centos. Everything is working fine except getting email from cron for jobs that output stuff (I am getting the daily logwatch which contains the jobs ran and "MAIL sending errors X Time(s)", where X varies (today, that X is going to be very high))
The xmail sendmail replacement is setup according to docs (AFAIK) and looks like this:
Code:
The sendmail.xmail script looks like this:
Code:
Now, when the cron runs the job (it's just a script that verifies if the actual job is running and if not it starts it, outputting that it did so), things will look like this (pstree output):
Code:
Code:
Cron log on system says something like this:
Code:
The sent bytes varies depending on which script generates the error.
I couldn't find what the 0x0007 error code means.
Why the sendmail from cron is freezed/failed?
View 2 Replies
View Related
Feb 22, 2009
I have this server that runs Tomcat . this server sends mail with localhost as MTAthe local MTA is sendmail (with the default settings) . from time to time i have this strange thing and the emails it sends never reach the destination. the log shows it left the server , but looking at the logi see that the time on the log is wrong . sometime its correct and ometines its +2 hours. i guess this email are bounced at the destinationfor sending at future time . all this email that didnt reach the destination have this in common
Feb 22 15:47:44 BE00 sendmail[12969]: n1MDlikZ012969: from=<support@example.com>, size=5912, class=0, nrcpts=1,
msgid=<5269969.391235310464949.JavaMail.tomcat@BE00.example.com>, proto=ESMTP, daemon=MTA,
[code]....
View 3 Replies
View Related
Jun 17, 2010
We're using mutt to send out a daily email through cron. The only problem is that half the people aren't getting it, because its getting rejected as coming from an invalid address. Right now its sending out as username@localhost.localdomain.
How can I change this? I found the sendmail.cf, which I believe previous people have been editing directly, which from what I read isn't the best way to configure sendmail.
View 14 Replies
View Related
Jul 18, 2010
I have my system set up with sendmail (going through my ISP SMTP server) but when I sent an email using sendmail it was defaulting the from address to user.host.domain or something similar. So I read up about masquerading [URL] and managed to get it to USERNAME@myisp.com however I want to change USERNAME to a different value because my ISP username is different from my machine username. My aim is just to get the from address to be [URL]. This machine is only used by me so I don't need it to be different for different users if that makes things any easier...?
View 4 Replies
View Related
Jun 7, 2010
Is there any way where I can change the "from" address in the maillogs without
changing the envelop sender.
We have email users using smtp-auth with multiple email accounts but authenticating against single user account.So whenever a user sends mails through our server from any one of his multiple mail accounts,I want to be able to change the "From address" to the user he is authenticating against instead of the "from address" which he supplies, in the maillogs.
We have mimedefang running on our system,I tried using things like change_envelope_sender functions,but it only changed the envelope sender and did'nt change anything in the maillogs.
View 1 Replies
View Related
Mar 14, 2010
my network expertise is tenuous at best. This started because one computer on my network is having trouble updating Google Toolbar information. This is a laptop which joins other wifi networks outside of the house.
Code:
BROKEN:~$ ping toolbar.google.com
PING toolbar.google.com (208.68.139.89) 56(84) bytes of data.
[code]....
View 9 Replies
View Related
Mar 17, 2010
I updated Kubuntu from 8.10 to 9.04. After the update, I saw a problem with VPN connections. I am using an mac pro with 2 ethernet ports. Only one of them is connected to switch. I am using a static IP in my local network. The problem is that I lose dns information after connecting and disconnecting to a VPN by KVpns.As I am using static ip, I entered my dns server to resolv.conf file with "nameserver 192.168.128.4". My interfaces file is as follows:
auto lo
iface lo inet loopback
address 127.0.0.1
[code]....
View 1 Replies
View Related
May 4, 2010
I am having many mails transferred through my Sendmail server,but I want to configure only authorised email address through our server.optimize my mail server's configuration.
View 3 Replies
View Related
Jan 2, 2011
Something is definitely odd here:Quote:
[rena@mercury:~ 500]
$ hostname
mercury
[code]....
View 9 Replies
View Related
Feb 16, 2011
I'm trying to get dhcpd to use a specific IP address as the source address for responses it uses an IP address for. I coded "local-address 172.30.0.4" in the config file. For some responses it uses this address. For some other responses it does not. In those cases it uses the IP address that is the first on the interface. Is there another configuration I should be using, instead?
View 2 Replies
View Related
May 20, 2011
Hey guys. I have a client computer PXE booting from my host computer and it is supposed to give the client the ip address 172.16.0.100 however instead it gives it the ip address 172.16.0.208.
I have this set up working with two other computers and there is no noticeable difference other than mac addresses for the network card.
Here is an extract from my '/etc/dhcp3/dhcpd.conf' file...
ddns-update-style-none;
option domain-name "example.org";
default-lease-time 600;
max-lease-time 7200;
[Code]....
I have quadruple checked the mac address of the client and it is definitely "00:07:E9:32:16:81" so why is it not giving it the IP address that I have specified?
View 2 Replies
View Related
Jul 20, 2011
what is Production IP address and Management IP address in Linux servers? What is the significance of these two? When to use what?
View 3 Replies
View Related
Dec 17, 2009
I have an HP Pavilion A6750F with an AMD Phenom 9650 Quad Core. 8 GB memoryThe NIC is a REALTEC Semiconductor RLT8111/81688 PCI Express Gigabit Ethernet Controller.The actual MAC address for the NIC is 00:24:21:55:DE:40I have loaded CentOS 5.3 on this host three of four times in various configurations and patching levels.THE PROBLEM: The system identifies the NIC as having MAC FE:FF:FF:FF:FF:FF.When this happens, the network connectivity obviously stops working.It identifies everything else OK, just maps the wrong MAC.I'm no sure how to troubleshoot this problem. I tried rebooting a couple times and once that fixed it. Usually it does not. I reloaded (gasp) Windows Vista on it and it worked ok.This last time, I reloaded CentOS it hung on the bootup (ASK ??), I reset it, it rebooted and everything looks ok; for now.
The system says it is presently using driver r8169
View 4 Replies
View Related
Mar 17, 2011
I have this symlinked into my /etc/cron.d folder:
Code:
*/5 * * * * python /srv/bidsite/manage.py send_mail
* * * * * echo `date` >> /home/bidsite/what.txt
but it does nothing. What I really want to happen is the first line. The second line is just for testing.
View 3 Replies
View Related
Apr 17, 2011
I want config ubuntu to send mail with sendmail. Any manual for cinfig sendmail in Ubuntu.
View 4 Replies
View Related
Jan 28, 2010
Cron for root does not run,it's 8.04LTS ubuntu server,however Cron runs for other users,Can anyone help?i've checked many times that i have the right syntax.
View 9 Replies
View Related
Oct 25, 2010
Ubuntu server 10.04:I had webmin installed on my server, but I found it was using too many resources for what it offered, so I went ahead and uninstalled it. I'm not sure exactly which version it was, but it was the most recent version a month ago. I ran the uninstaller which ships with webmin.Well, now everyday my root account gets the following email:
From root@DOMAIN.com Mon Oct 18 00:42:01 2010
Return-Path: <root@DOMAIN.com>
Date: Mon, 18 Oct 2010 00:42:01 -0400
[code]....
View 3 Replies
View Related
Mar 30, 2011
I am running a headless Ubuntu server accessed through Webmin. The server is running 10.4.2 64 bit version. I have a number of cron jobs including a simple back-up job which is:
Code:
rsync -av /media/server/ /media/backup/backup/
All of the other jobs run fine but for some reason this job which is scheduled to run each day at midnight does not run. If I SSH into the server and run the job manually it works fine.
The output of 'crontab -l' is:
@daily rsync -av /media/server/ /media/backup/backup/
11 3 * * * /etc/webmin/package-updates/update.pl
@daily tar czf /media/backup/serversystem.bz2 --exclude=/proc --exclude=/lost+found --exclude=/backup.tar.bz2 --exclude=/mnt --exclude=/media --exclude=/sys /
@reboot inadyn --username ********** --password ********** --update_period_sec 600 --alias **********
@daily /etc/webmin/backup-config/backup.pl 12978522112842
The output of 'crontab -e' is:
Error opening terminal: unknown.
crontab: "/usr/bin/sensible-editor" exited with status 1
View 9 Replies
View Related
Jun 18, 2011
I'm trying to remotely schedule a shutdown using cron but I can't get it to work. I did setup the following 'sudo crontab -e'
Code:
For some reason doesn't this work, since I was able to login and get this output when using 'date'
Code:
View 7 Replies
View Related
Jul 21, 2010
The sendmail was setup in default condition. While testing some php application using @mail function, it uses the sender name as "www-data@xxx.com". How to replace the "www-data"?
View 2 Replies
View Related
Jul 11, 2011
I recently inherited an Ubuntu server where the previous admin had installed sendmail and FCheck IDS.The issue I am encountering is that sendmail appears to be rewriting both /etc/mail/m4/dialup.m4 and /etc/mail/sendmail.cf constantly (at least once per hour).dailup.m4 never seems to change (other then the creation date), while sendmail.cf has the line describing who and when it was built changed.So far I have had no luck tracking down why sendmail would be rewriting these files.
View 2 Replies
View Related
Feb 10, 2010
I am unable to run my cron tab job without root password.I made a little research on the forums and appearantly it should be changed.Must I change "passwd" part with my root password?
View 9 Replies
View Related
Jun 7, 2010
I'm trying to setup a cron with screen. the purpose of running screen is because i want to resume to see the status of the job while it is running. anyone can enlighten me how i should setup my cron. I've tested with
00 14 * * * screen [command]
but the cron doesn't create a new screen.
View 4 Replies
View Related
Feb 21, 2011
I'm with Ubuntu server 10.10. I created a script and put it in /etc/cron.daily. But looks it doesn't run (it didn't generate any log). The following is all I did.
Code:
root@chonseng1:/var/log# cat /etc/crontab
# /etc/crontab: system-wide crontab
# Unlike any other crontab you don't have to run the `crontab' command to install the new version when you edit this file and files in /etc/cron.d. These files also have username fields, that none of the other crontabs do.
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
# m h dom mon dow user command
17 * * * * root cd / && run-parts --report /etc/cron.hourly
25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )
#
root@chonseng1:/var/log# ls -l /etc/cron.daily/ntpdate
-rwxr-xr-x 1 root root 52 2011-02-18 13:22 /etc/cron.daily/ntpdate
root@chonseng1:/var/log# cat /etc/cron.daily/ntpdate
ntpdate ntp.ubuntu.com >>/var/log/ntpdate.log 2>&1
View 7 Replies
View Related
Sep 1, 2011
I am using my ubuntu server as my home router.Everything is working as expected with one exception.y DSL modem is a POS and every now and again it looses connection to the router. Sometimes it needs to be reset and sometimes it does not.Either way, when this happens my ubuntu server needs to reacquire an IP from my ISP. If it screws up when I'm at home it's no big deal, but if it happens when I'm not around my housemates have taken to hitting the reset switch on the server. I'm not a big fan of this so I wrote a script to ping my ISP's gateway. If it's unavailable it bounces the eth0 interface and tries to get an IP. I am running this script every couple of minutes in a cron job. Now I'm getting syslog entries like
Code:
Aug 9 20:31:01 portal CRON[9602]: (root) CMD (/opt/ChkAndFixNetwork.sh)
every few minutes. This is annoying and makes the logs useless for troubleshooting. I
[code]...
View 1 Replies
View Related
Jun 15, 2011
When I use sendmail (or, most commonly, a PHP or Perl script uses it) to send to any other domain except my own, it works great. When I use it to send to my own domain, however, it's trying to deliver it to localhost. Problem is, all our mail is handled by an Exchange server on a different machine, so I really don't want If I run sendmail manually for a test message to myself, here's how it comes up after the message is closed out:
Code:
echo "Subject: test" | /usr/sbin/sendmail -v me@domain.com
354 Enter mail, end with "." on a line by itself
>>> .
050 <me@domain.com>... Connecting to local...
[code]...
The message then gets dropped into my box at /var/mail/xxxx, but that's really not helpful to me -- I need to to connect to that other machine to deliver the mail there. This machine isn't used as a mail server at all. Also, if it's trying to send to a username that doesn't have an account on this server (we have many), it just fails entirely with "user unknown" (that makes sense, as there are only a couple of user accounts on the web server). how to get sendmail to connect to our mail server instead of "local"?
View 4 Replies
View Related