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.
I have a lightweight admin background, but good enough to set up most servers. I have switched from sendmail to postfix for the first time, but I keep going around in circles on the following...
In sendmail, I used to maintain a table (mailertable) where I would redirect email like this
I am trying to write a bash script that installs a program fully automated for me. I am stuck at the one part where i need to change a line in one config file. I have tried various syntax for sed and none have worked. Maybe someone can suggest how to go about this. Since the line appears in the middle of the file, I can't use echo or cat. Also the file will be diffrent lengths depending on the install.
The line I need changed is:
I need that changed to:
the last syntax i tried is:
Yes this is for PNP4Nagios on centos 5.6 64bit. If i can get this figured out. I will be willing to post the whole thing for others to use. it will be used to install PNP after a working nagios install is done.
I intend to install cryus-sasl, procmail and sendmail for my school. After I've finished the install of cyrus-sasl and procmail, I try to install sendmail. I have config the required setting of sendmail which let it support cryus-sasl in the file sendmail/devtools/Site/site.config.m4, then I build the main program of the sendmail and created the related user account and directories. It doesn't has any error. But when I try to build the program "makemap" and "mailstats", it has the similar error which said that there are an unrecognized option '-R/usr/local/ssl/lib' and can't find -lphclient. Here are the dump screen after I type the command "sh Build install" in the directory of program "makemap":
[root@chmsmail makemap]# sh Build install Configuration: pfx=, os=Linux, rel=2.6.18-194.el5PAE, rbase=2, rroot=2.6.18-194, arch=i686, sfx=, variant=optimized Making in /usr/local/src/sendmail/obj.Linux.2.6.18-194.el5PAE.i686/makemap cc -O2 -I. -I../../sendmail -I../../include -I/opt/nph/include -I/usr/local/ssl/include - code....
Anyone can tell me what should I do to tackle the error?
I'm running sendmail 8.14 which sends out thousands of email. I'm getting several timeout error on only a few particular hosts. What I found is almost all of them are Exim 4.69
maillog shows --> timeout waiting for input from ..@xxx during client greeting
after several tries, I finally got bounce back with
--> 451 4.4.1 reply: read error from xxx.com. .. Deferred: Connection timed out with xxx.com. Message could not be delivered for X day Message will be deleted from queue
When i search though maillog with all of those error and they all seems to be running Exim and they are different mail domains.
I'm running Sendmail with SASL Authentication and STARTTLS and this error always turns up in my log, even though the server works as a charm apart from that.
I'm trying to pipe from a textfile to sendmail.The command I'm using on teh sendmail server is:[root@sendmail-server test]# sendmail to-email-address@relay_server-address < test2.txt.I'm doing this because I was doing this from an aliases file just fine until about three weeks ago. The aliases file suddenly stopped working after the relay server received an inordinate amount of email from the From: address and for the To: address.
Iam using centos5.i had installed qmail as MTA.when iam login through squirrel mail it gives login error invalid username or password.And then i tried with domain.
I am using ubuntu 9.10 and I updated by ubuntu machine. It updated but at the end it gave me a message that "You have new mail in /var/mail/root". When I checked it via the command "tail /var/mail/root" it showed me this.
tail /var/mail/root X-Cron-Env: <SHELL=/bin/sh> X-Cron-Env: <HOME=/root> X-Cron-Env: <PATH=/usr/bin:/bin> X-Cron-Env: <LOGNAME=root> Message-Id: <20100318051502.0D1ABB1C01@Infosec-Lab04> Date: Thu, 18 Mar 2010 10:15:02 +0500 (PKT) WARNING: "MaxBytes[leased]" not specified ERROR: Please fix the error(s) in your config file
I am using webmin for my daily tasks. I have fedora 13, whenever I click on ''Sendmail M4 Configuration'' or Outgoing Addresses (generics)'' I get the following error message
Quote:
The Sendmail M4 configuration base directory /usr/share/sendmail-cf was not found on your system, or is not the correct directory. Maybe it has not been installed (common for packaged installs of Sendmail), or the module config is incorrect. I read documentation at sendmail.org, it seems that structure of directories for send mail has been changed in version sendmail-8.1.4 shipped with FC13. In webmin config module we have
Quote:
Sendmail M4 base directory = /usr/share/sendmail-cf
which is not there. I did a locate / sendmail-cf on the command line, it finds nothing
I'm trying to setup notification function for the Nagios Core which use Mail to send notification.I got an account from Rogers. I have SMTP server, email account with authentication information.My Nagios server is in a workgroup, there is now domain assigned to it, I just use nagiosserver.localdomain in /etc/hosts.I added Rogers SMTP server in /etc/mail/sendmail.mc and Future (AuthInfo) I created an /etc/mail/AuthInfo and add AuthoInfo:smtpserver "U:user" " P: pwd" "M:Plain"I added smtp server in /etc/mail/access for RelayI added root@nagiosserver.localdomain on /etc/mail/virtusertableI regenerated sendmail.cf by user m4 commandrestart sendmail service.When I ran: Mial -s test nagios4ccs@rogers.comIt did not prompt any error message , in the maillog it says the message is queued but It can not be sent out
I'm using Sendmail 8.13.8 on a CentOS 5.5 vServer (Virtuozzo). I'm using a loop in PHP to send a lot of HTML-mails via sendmail. Each mail is a mail with individual statistics for our users, so its not mass mailing, bcc is not an option. It all works fine, but when I take a closer look there is a problem heading our way with a high number of mails: For each mail sendmail opens up 43 files. Sometimes these open files get closed again very fast, sometimes not.
Here is an example using the PHP-script below, it sends 20 mails in a loop: [root]# php test-mail.php START: number of open files: 2113 END: number of open files: 2973
This is the worst case. The number of open files (lsof | wc -l) used to send the 20 mails is 860 => 43 open files per mail. Sometimes the files are closed very fast, so I get results like this, too: [root]# php test-mail.php START: number of open files: 2113 END: number of open files: 2242
This shows 129 (3 * 43) open files, so the open files for 17 send mails are already closed, for 3 mails the 129 files are still open. In the worst case and with lots of mails our server crashes, the numfile limit of 8192 in user_beancounters is reached (our ISP won't give us more than 8192). Sendmail DeliveryMode is background. Could it be that sendmail tries to send lots ob mails asynchronously and uses 43 open files for each?
I'm only depending on sendmail to deliver the mails, normally I wouldn't dare to touch the sendmail config (like 'if you don't know what you're doing, don't!'). It is not a problem of PHP. I verified this by sending mails via SMTP localhost to sendmail (opened 43 files per mail) and sending mails via SMTP to an ISP-relay (did not open any files per mail). This is the code for test-mail.php:
PHP Code: <?php $output = shell_exec('lsof | wc -l'); echo "START: number of open files: $output"; // HTML message $msg = '<html><head><title>Test mail</title></head><body><p>Mailbody</p></body></html>'; // Set 'Content-type'-header $header = 'MIME-Version: 1.0' . " "; $header .= 'Content-type: text/html; charset=iso-8859-1' . " "; for($i=0; $i<20; $i++) { // send mail, this opens up 43 files for each mail('you@yourdomain.com', 'Testmail '.$i, $msg, $header, '-f [email]bounce@yourdomain.com[/email]'); } $output = shell_exec('lsof | wc -l'); echo "END: number of open files: $output"; ?>
I am getting a strange font problem (see attached screenshot) for a user logging in over VNC Server, I am also logged in over VNC however I am no experiancing any problems... This was the case on CentOS 5.3 and on 5.4. I have tried removing the .vnc dir in the users home dir and re running vncserver so that it recreates it, I found this in the logs:
1. (nautilus:14718): Pango-WARNING **: No builtin or dynamically 2.loaded modules were found. Pango will not work correctly. 3.This probably means there was an error in the creation of: 4.'/etc/pango/pango.modules' 5. You should create this file by running pango-querymodules. 6.Fontconfig error: Cannot load default config file
I have an ubuntu server virtual machine with a webhost. I am trying to configure the firewall. I am having a problem with sendmail and the required firewall configuraiton If I type the command:
iptables -F
Then sendmail works perfectly. I can see the emails sent in my googlemail inbox. I then configure my firewall as follows:
iptables -F iptables -A INPUT -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT iptables -A INPUT -i lo -j ACCEPT iptables -A INPUT -p tcp --dport 2252 -j ACCEPT iptables -A INPUT -p tcp --dport 80 -j ACCEPT [Code]....
(I have moved SSH to a diffrent port) Once this is setup sendmail no longer works. I had assumed that sendmail will establish a tcp connection and the first rule will allow all established connections to pass. why this iptables/netfilter config stops sendmail from working.
it may be a simple doubt i have but i really want to know this,in the httpd.conf file under the server root of apache server.they have instructed not to add a slash at the end when mentioning or giving the path for server root.I think both will still remain the same, then y is that mentioned that way?
when installing mysql-server by this command sudo apt-get install mysql-server. Installaton is complete but i cant get a my.cnf file. Can anyone tell, what is the mistake i did and how to overcome from this error. Here, i am posting the results
Running natios server in Debian 8? I cannot start nagios3 demon, it got following error:
Error: Check period '24x7' specified for service 'check ssh connection' on host 'testk2' is not defined anywhere! Error: Notification period '24x7' specified for service 'check ssh connection' on host 'testk2' is not defined anywhere!
But if I commented following statement in generic-service_nagios2.cfg, it works just fine.
I had a RAID controller in a system that would not load Virtuozzo. So I deleted the array created by the 3Ware 9550SX controller before removing it and one drive from the CentOS 4.8 server. Even though I deleted the array when the server boots it shows an error:
ERROR : asr : invalid RAID config table
How can I clear and remove the table without having to reload the OS? Can I? Di I need to run the Seagate Tools and reset the drive?
I recently modified sendmail.cf to use a third party SMTP server to send emails. It works great. But when I run sendmail from the command line, I have to specify the -C flag and force feed it the location of my sendmail.cf, or else it doesn't work.
So in other words, the following works great:
However, if I don't specify the -C flag, sendmail doesn't consider what's in the sendmail.cf and barfs:
I don't run sendmail as a daemon. I'm only using it to send emails. I know my modifications of sendmail.cf are correct because it works perfectly when I use the -C flag. I searched my disk to see if I could find another sendmail.cf on the machine and only the one in /etc/mail came up.
Why sendmail is not reading my sendmail.cf?
I'm running Sendmail version 8.14.2 on Fedora Core 8.
I'm trying to install and configure a printer (networked Brother HL4040CN), but I'm getting an error dialog when I click on "New" in the printer configuration GUI.
Action 1) Click on "New" Response 1) a) "Authentication (fetching device list)" dialog box, request password for root. Response 1) b) "Returning HTTP Forbidden for CUPS-Get-Devices (no URI) from localhost" appended to /var/log/cups/error_log A2) Type root password and press enter in "Authentication" dialog box R2) a) "CUPS server error" box, "There was an error during the CUPS operation: 'server-error-internal-error'. R2) b) /var/log/cups/error_log:
Code: E [17/Jun/2009:08:14:12 -0400] Unable to execute /usr/lib/cups/daemon/cups-deviced: insecure file permissions (0100777) E [17/Jun/2009:08:14:12 -0400] Returning IPP server-error-internal-error for CUPS-Get-Devices (no URI) from localhost A3) Click "OK" button in "CUPS server error" box R3) a) "New Printer" dialog box opens R3) b) /var/log/cups/error_log:
Code: E [17/Jun/2009:08:17:10 -0400] Unable to execute /usr/lib/cups/daemon/cups-driverd: insecure file permissions (0100777) E [17/Jun/2009:08:17:10 -0400] Returning IPP server-error-internal-error for CUPS-Get-PPDs (no URI) from localhost A4) Enter "lpr://192.168.1.2" and click "Find" button under "Seelct Device->Network Printer->Find Network Printer" R5) "No printer found at that address."
Any ideas? I have installed the RPMs from Brother's web site for both LPR and CUPS-wrapper
Ip Address Proxy Server 1 is: 123.16.201.23 Ip Address Proxy Server 2 is: 123.16.201.24
Every Client: 123.16.3.25,.... and 123.16.4.25,..... ....
- I want export config file on Proxy Server, but i don't know command and i see interface is command line. So hepl me command line and send file to my email.
- In config file on Proxy Server may be disconnect internet for user and Enable coonect internet for user. Hepl me do this?
- I using Ubuntu 10.04LST i want connect file Server on Server ( using WinServer2003).
I just go to company so i have everything don't know system.
I'm using RHEL 5.4 and trying to use the system-config-kickstart to generate a ks.cfg file with all the settings already appeneded. After running the "system-config-kickstart --generate ks.cfg" command, the file gets created but it's missing the firewall configuration, partition information and so on.
How can these settings also be generated with the system-config-kickstart?
I'm building a new file/media server for my household to use, and would like to hear the experiences of others, and suggestions, or links to appropriate howto's. I'll be using two (2) 250 GB Western Digital RE4 drives mirrored via mdadm RAID 1 for the Operating System. The storage area will be handled by four (4) 500 GB Western Digital RE4 drives in a RAID 5 array, managed by an Areca 1210 controller.
What I'd like to configure is a basic Samba file server, on which we have individual user folders, and a shared drive. As well, I'd like to add the ability to manage our movie collection so it can be accessed by the Boxee Box attached to the television. Twonky looks promising (and I don't mind paying the $19.95 for something that works well). However, as this is new to me, there may be other solutions out there that are better, and easier to administer. Moving forward, I'd like to explore the feasibility of configuring LDAP on this machine to authenticate users on the network (perhaps even integrate the mail server somehow), and the remote users (only two) who VPN into the network using the pfSense firewall appliance. There are no Windows servers, so Active Directory is not a factor.