Re: [CentOS] Strange ! characters inserted into emails
Sean Carolan wrote: > I have never encountered anything like this before, so thought I'd post > here and see if anyone can help. > > We have a java application that sends out notification emails to > end-users. The body of the email is some boilerplate text and HTML that > is pulled from a database. When the emails are received there are > random instances of " !" (that's a space and a bang symbol) inserted > into the email in various locations. For example a sentence that is > supposed to read like this: > > The quick brown fox jumped over the lazy dog. > > ends up looking like this: > > The quick b !rown fox jumped over the laz !y dog. > > We combed through the source text and didn't find any unusual characters > in the body of the text. Somehow these bang symbols are being inserted > after the mail is handed off to sendmail. Does anyone have an idea how > I can troubleshoot this further? Or maybe you've seen something similar > in your environment? I can save you a lot of trouble, you are sending more than 2040+ characters (almost 2048) without a newline. I resolved this in my send2blogger program (it's perl). See: http://www.linuxha.com/other/send2blogger/index.html It Perl but I think I did a good job of explaining it in the code. I hope this helps. Oh, it's GPL I should put that up there. -- Linux Home Automation Neil Cherry [EMAIL PROTECTED] http://www.linuxha.com/ Main site http://linuxha.blogspot.com/My HA Blog Author of: Linux Smart Homes For Dummies ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Configuring sendmail in a corporate environment
Alfred von Campe wrote: > I have a stock CentOS 5 system as far as email (sendmail) is concerned > that is on our corporate LAN. I am not trying to set up a mail server; > I merely want our CentOS systems to be able to send out emails. This > works as long as the recipient's domain is our local domain. Any email > send to recipients that are not in our local domain get stuck in the queue: > > # mailq > /var/spool/mqueue (2 requests) > -Q-ID- --Size-- -Q-Time- > Sender/Recipient--- > m61D6wC1029257 16 Tue Jul 1 09:06 <[EMAIL PROTECTED]> > (Deferred: Connection timed out with mx2.emailsrvr.com.) > <[EMAIL PROTECTED]> > > It appears that our firewall is not allowing connection to outside MX > hosts. I think I need to configure sendmail to forward emails to our > local smtp host, but I am not sure how to do that. In my write up of using sendmail with gmail I think I explain how to rewrite the from. If it's not there then look at the Sendmail/ Comcast write up: http://www.linuxha.com/other/sendmail/gmail.html I had to rewrite the from as being from gmail.com in order for gmail.com to accept the mail. -- Linux Home Automation Neil Cherry [EMAIL PROTECTED] http://www.linuxha.com/ Main site http://linuxha.blogspot.com/My HA Blog Author of: Linux Smart Homes For Dummies ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Sendmail with Google Apps SMTP
AnneWilson wrote: > On Sunday 29 June 2008 02:33:13 Neil Cherry wrote: >> AnneWilson wrote: >>> On Saturday 28 June 2008 19:58:58 John R Pierce wrote: >>>> Karanbir Singh wrote: >>>>> Michael Holmes wrote: >>>>>> I use Google Apps for my domain, hosted on a CentOS server. How could >>>>>> I setup my sendmail.mc <http://sendmail.mc> to route Sendmail mails >>>>>> through the Gmail SMTP? >>>>>> >>>>>> Any help would be greatly appreciated. >>>>> look up : sendmail smarthost >>>> complicated by google requirnig TLA authentication and SSL on a >>>> nonstandard port for SMTP relaying. >>> But the instructions on their website are quite clear. I set up my EeePC >>> to use smtp through google while I was on holiday. >> Using sendmail? What link was this? > > I use sendmail.postfix, simply setting KMail with the settings listed in > http://mail.google.com/support/bin/answer.py?answer=78799. Doesn't that > supply what you want? Not for sendmail, things are a little more complicated. :-) It does contain useful information. Thanks -- Linux Home Automation Neil Cherry [EMAIL PROTECTED] http://www.linuxha.com/ Main site http://linuxha.blogspot.com/My HA Blog Author of: Linux Smart Homes For Dummies ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Sendmail with Google Apps SMTP
AnneWilson wrote: > On Saturday 28 June 2008 19:58:58 John R Pierce wrote: >> Karanbir Singh wrote: >>> Michael Holmes wrote: >>>> I use Google Apps for my domain, hosted on a CentOS server. How could >>>> I setup my sendmail.mc <http://sendmail.mc> to route Sendmail mails >>>> through the Gmail SMTP? >>>> >>>> Any help would be greatly appreciated. >>> look up : sendmail smarthost >> complicated by google requirnig TLA authentication and SSL on a >> nonstandard port for SMTP relaying. >> > But the instructions on their website are quite clear. I set up my EeePC to > use smtp through google while I was on holiday. Using sendmail? What link was this? -- Linux Home Automation Neil Cherry [EMAIL PROTECTED] http://www.linuxha.com/ Main site http://linuxha.blogspot.com/My HA Blog Author of: Linux Smart Homes For Dummies ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Sendmail with Google Apps SMTP
Michael Holmes wrote: > I use Google Apps for my domain, hosted on a CentOS server. How could I > setup my sendmail.mc <http://sendmail.mc> to route Sendmail mails > through the Gmail SMTP? Try this: http://www.linuxha.com/other/sendmail/gmail.html -- Linux Home Automation Neil Cherry [EMAIL PROTECTED] http://www.linuxha.com/ Main site http://linuxha.blogspot.com/My HA Blog Author of: Linux Smart Homes For Dummies ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Deleting file in /tmp directory
Mário Gamito wrote: Hi, This is a bit of-topic, but since it has to do with /tmp permissions here it goes. Anyway, I'm sorry in advance for posting this. I have this PHP script (simplificated here), called delete_tmp.php that basically calls external commands: delete_tmp.php file is owned by gamito.users /tmp/sess_89765 file has permissions -rw-- and is owned by gamito.users My /tmp permissions are rwxrwxrwt and is owned by root.root I know that the the sticky bit only allows files to be deleted by their owners, the owner of the directory or by root. Never the less, i can switch to /tmp directory and delete sess_89765 file as user gamito. If I run: $ php delete_tmp.php as root, it deletes sess_89765 file. But if I do the same has user gamito, it doesn't delete the file !!! Ideas ? PHP, being run from the web interface, is run as whatever ID Apache is run as. Apache is not user gamito. On a file with -rw-- permission users in the group will not be allowed to delete the file. -- Linux Home Automation Neil Cherry [EMAIL PROTECTED] http://www.linuxha.com/ Main site http://linuxha.blogspot.com/My HA Blog Author of: Linux Smart Homes For Dummies ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos