f



sendmail won't send mail again

Hello!


I want to use a perl CGI script behind apache to serve info 
inqueries and did something like the following:
        open(MAIL,"| $mailprog -t"); 

        print MAIL "To: $to\n";
        print MAIL "From: $webmaster_email\n";
        print MAIL "X-Mailer: DaySpot Powered.\n";
        print MAIL "Subject: $subject\n\n";
        print MAIL "$message";
        print MAIL "\n.\n";

        close MAIL;
Where From field is some yahoo email account. The apache runs 
as apache:apache. 

Now I find it couldn't send out emails but no error logs.
I tested sendmail using:
/usr/sbin/sendmail -v some@where.com << eof
Subject: test
a test
eof
<enter>

It works! (I tested with my login account and root). Where
should I look at? The From field or the apache account?


Thanks and best regards,
Wenjie
0
gokkog (77)
9/21/2003 2:21:11 PM
comp.mail.sendmail 13518 articles. 1 followers. jfretby (35) is leader. Post Follow

9 Replies
819 Views

Similar Articles

[PageSpeed] 44

Wenjie wrote:
> Hello!
> 
> 
> I want to use a perl CGI script behind apache to serve info 
> inqueries and did something like the following:
>         open(MAIL,"| $mailprog -t"); 
> 
>         print MAIL "To: $to\n";
>         print MAIL "From: $webmaster_email\n";
>         print MAIL "X-Mailer: DaySpot Powered.\n";
>         print MAIL "Subject: $subject\n\n";
>         print MAIL "$message";
>         print MAIL "\n.\n";
> 
>         close MAIL;
> Where From field is some yahoo email account. The apache runs 
> as apache:apache. 
> 
> Now I find it couldn't send out emails but no error logs.
> I tested sendmail using:
> /usr/sbin/sendmail -v some@where.com << eof
> Subject: test
> a test
> eof
> <enter>
> 
> It works! (I tested with my login account and root). Where
> should I look at? The From field or the apache account?


Did you have the right header for the CGI script? If you forget to include the 
header for it, then it won't work.


  //Aho

0
user7 (4036)
9/21/2003 2:30:27 PM
* Wenjie <gokkog@yahoo.com> wrote:
>          open(MAIL,"| $mailprog -t"); 

$mailprog = "/usr/sbin/sendmail" ?

Try this instead:

open(MAIL,"| $mailprog -t") or die "Could not open pipe to sendmail\n";

- Sebastian

-- 
Sebastian Jaenicke                                   Disce aut discede!
whois pgpkey-C81115B1 -h whois.ripe.net|perl -ne's-^certif: *--&&print'
0
sjaenick (143)
9/21/2003 2:41:04 PM
gokkog@yahoo.com (Wenjie) wrote in 
news:d2804eb3.0309210621.704ff2d4@posting.google.com:

> Hello!
> 
> 
> I want to use a perl CGI script behind apache to serve info 
> inqueries and did something like the following:
>         open(MAIL,"| $mailprog -t"); 

Better to use:  open(MAIL, "| $mailprog -t -f some_valid_email");
This will put a valid email address in the return-path header.

> 
>         print MAIL "To: $to\n";
>         print MAIL "From: $webmaster_email\n";


>         print MAIL "X-Mailer: DaySpot Powered.\n";
Not really needed.



>         print MAIL "Subject: $subject\n\n";
>         print MAIL "$message";


>         print MAIL "\n.\n";
Not needed.



> 
>         close MAIL;
> Where From field is some yahoo email account. The apache runs 
> as apache:apache. 
Does apache have permissions to use sendmail? Requires a valid shell to 
call a program, doesn't it?




> 
> Now I find it couldn't send out emails but no error logs.
In both httpd logs, maillog, and messages?




> I tested sendmail using:
> /usr/sbin/sendmail -v some@where.com << eof
> Subject: test
> a test
> eof
><enter>
> 
> It works! (I tested with my login account and root). Where
> should I look at? The From field or the apache account?
> 
> 
> Thanks and best regards,
> Wenjie



Just suggestions. I'm by far no expert.

Cheers,
Mark


0
mtaylor (13)
9/21/2003 2:59:38 PM
Mark Taylor <mtaylor@lrim.com> wrote in message news:<Xns93FD686F77985maintainersetifaqorg@66.170.196.249>...
> gokkog@yahoo.com (Wenjie) wrote in 
> news:d2804eb3.0309210621.704ff2d4@posting.google.com:
> 
> > Hello!
> > 
> > 
> > I want to use a perl CGI script behind apache to serve info 
> > inqueries and did something like the following:
> >         open(MAIL,"| $mailprog -t"); 
> 
> Better to use:  open(MAIL, "| $mailprog -t -f some_valid_email");
> This will put a valid email address in the return-path header.

Do you mean that the return-path header is actually specified by
 -f other than From: field below (anyway I will check.)
> 
> > 
> >         print MAIL "To: $to\n";
> >         print MAIL "From: $webmaster_email\n";
> 
> 
> >         print MAIL "X-Mailer: DaySpot Powered.\n";
> Not really needed.
> 

OK. To be removed.

> 
> 
> >         print MAIL "Subject: $subject\n\n";
> >         print MAIL "$message";
> 
> 
> >         print MAIL "\n.\n";
> Not needed.
> 
> 
OK.


> 
> > 
> >         close MAIL;
> > Where From field is some yahoo email account. The apache runs 
> > as apache:apache. 
> Does apache have permissions to use sendmail? Requires a valid shell to 
> call a program, doesn't it?
> 
> 
I think apache has the right:

# id apache
uid=48(apache) gid=48(apache) groups=48(apache),51(smmsp)
# id gokkog
uid=500(gokkog) gid=501(gokkog) groups=501(gokkog),51(smmsp)

I can use gokkog account above to send emails via command line.

> 
> 
> > 
> > Now I find it couldn't send out emails but no error logs.
> In both httpd logs, maillog, and messages?
> 
> 
> 
> 
> > I tested sendmail using:
> > /usr/sbin/sendmail -v some@where.com << eof
> > Subject: test
> > a test
> > eof
> ><enter>
> > 
> > It works! (I tested with my login account and root). Where
> > should I look at? The From field or the apache account?
> > 
> > 
> > Thanks and best regards,
> > Wenjie
> 
> 
> 
> Just suggestions. I'm by far no expert.

Thank you and other people. (And I have no problem about the CGI
script itself or the apache server, as far as I know).



> 
> Cheers,
> Mark
0
gokkog (77)
9/21/2003 11:34:58 PM
"J.O. Aho" <user@example.net> wrote in message news:<bkkcjb$2kior$1@ID-130698.news.uni-berlin.de>...
> Wenjie wrote:
> > Hello!
> > 
> > 
> > I want to use a perl CGI script behind apache to serve info 
> > inqueries and did something like the following:
> >         open(MAIL,"| $mailprog -t"); 
> > 
> >         print MAIL "To: $to\n";
> >         print MAIL "From: $webmaster_email\n";
> >         print MAIL "X-Mailer: DaySpot Powered.\n";
> >         print MAIL "Subject: $subject\n\n";
> >         print MAIL "$message";
> >         print MAIL "\n.\n";
> > 
> >         close MAIL;
> > Where From field is some yahoo email account. The apache runs 
> > as apache:apache. 
> > 
> > Now I find it couldn't send out emails but no error logs.
> > I tested sendmail using:
> > /usr/sbin/sendmail -v some@where.com << eof
> > Subject: test
> > a test
> > eof
> > <enter>
> > 
> > It works! (I tested with my login account and root). Where
> > should I look at? The From field or the apache account?
> 
> 
> Did you have the right header for the CGI script? If you forget to include the 
> header for it, then it won't work.
> 
> 
>   //Aho


Yes the CGI script itself did print out some result (email sent!). That's 
weird.

Best regards,
0
gokkog (77)
9/21/2003 11:36:22 PM
Sebastian Jaenicke <sjaenick@techfak.uni-bielefeld.de> wrote in message news:<slrnbmre40.ool.sjaenick@azathoth.jaenicke.org>...
> * Wenjie <gokkog@yahoo.com> wrote:
> >          open(MAIL,"| $mailprog -t"); 
> 
> $mailprog = "/usr/sbin/sendmail" ?
> 
> Try this instead:
> 
> open(MAIL,"| $mailprog -t") or die "Could not open pipe to sendmail\n";
> 
> - Sebastian


There are no problem with the $mailprog path. for your second suggestion,
I will give it a try. But where shall I look up the log as it is a CGI
script? apache logs ?

Thanks and best regards,
Wenjie
0
gokkog (77)
9/21/2003 11:38:08 PM
Wenjie <gokkog@yahoo.com> wrote:


[ snip ]

> I think apache has the right:
> 
> # id apache
> uid=48(apache) gid=48(apache) groups=48(apache),51(smmsp)
> # id gokkog
> uid=500(gokkog) gid=501(gokkog) groups=501(gokkog),51(smmsp)

Do not do that! Don't add any account to the smmsp group!

Alexander


-- 
Alexander Dalloz | Enger, Germany
PGP key valid: made 13.07.1999
PGP fingerprint: 2307 88FD 2D41 038E 7416  14CD E197 6E88 ED69 5653
0
9/22/2003 12:23:38 AM
gokkog@yahoo.com (Wenjie) wrote in 
news:d2804eb3.0309211538.667a434f@posting.google.com:

> But where shall I look up the log as it is a CGI
> script? apache logs ?
> 

Yes.



0
mtaylor (13)
9/22/2003 1:15:29 AM
gokkog@yahoo.com (Wenjie) wrote in message news:<d2804eb3.0309210621.704ff2d4@posting.google.com>...
> Hello!
> 
> 
> I want to use a perl CGI script behind apache to serve info 
> inqueries and did something like the following:
>         open(MAIL,"| $mailprog -t"); 
> 
>         print MAIL "To: $to\n";
>         print MAIL "From: $webmaster_email\n";
>         print MAIL "X-Mailer: DaySpot Powered.\n";
>         print MAIL "Subject: $subject\n\n";
>         print MAIL "$message";
>         print MAIL "\n.\n";
> 
>         close MAIL;
> Where From field is some yahoo email account. The apache runs 
> as apache:apache. 
> 
> Now I find it couldn't send out emails but no error logs.
> I tested sendmail using:
> /usr/sbin/sendmail -v some@where.com << eof
> Subject: test
> a test
> eof
> <enter>
> 
> It works! (I tested with my login account and root). Where
> should I look at? The From field or the apache account?
> 
> 
> Thanks and best regards,
> Wenjie



Hello again!


The problem seems to be resolved: I added -f some_good_email_addr 
option to the perl CGI script:
        open(MAIL,"| $mailprog -t -f some_good_email_addr"); 

It is a bit little strange that there are no errors in apache logs
even if the "die" clause added.

Thanks to Alexander, I also removed those group members from smmsp.


Wow, life is so ... good ;-)
0
gokkog (77)
9/22/2003 12:59:07 PM
Reply:

Similar Artilces:

Sendmail won't send mail
Hello All, I'm running Sendmail 8.12.11 on Red Hat 9 Kernel 2.4.20-31-9 I can successfully send mail to my Sendmail server, but when I try to send mail out from the Sendmail server, I get the following message: makeconnection: cannot bind socket [0.0.0.0] address already in use. Below I include the d0 display and netstat The submit.cf file I use has the line "DaemonPortOptions=Name=NoMTA, Addr=127.0.0.1, M=E" Here is what netstat shows : ( removed some non-essential lines) Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 0.0.0.0:587 0.0.0.0:* LISTEN tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:953 0.0.0.0:* LISTEN It looks like Sendmail is being told to submit outgoing mail using port 587 to address 0.0.0.0 instead of localhost 127.0.0.1 Below is the d0 display Version 8.12.11 Compiled with: DNSMAP LOG MATCHGECOS MIME7TO8 MIME8TO7 NAMED_BIND NETINET NETUNIX NEWDB PIPELINING SCANF USERDB XDEBUG ============ SYSTEM IDENTITY (after readcf) ============ (short domain name) $w = nsw2 (canonical domain name) $j = nsw2.lin-nett.com (subdomain name) $m = lin-nett.com (node name) $k = nsw2 ========================================================...

Sendmail won't send mail hotmail.
Okay so I bought ipalaces.org through netfirms.com, I then transfered over the nameservers to zoneedit.com because I want to have better control of the DNS. I have ipalaces.org and *.ipalaces.org set to the IP 72.249.127.98 I am using Sendmail 8.13.8 on debian hosted on a virtual private server. I have asked my VPS host to set up a PTR record for ipalaces.org to point back to 72.249.127.98. I have the following setup for sendmail.mc MASQUERADE_AS(`ipalaces.org')dnl CLIENT_OPTIONS(`Family=inet, Address=72.249.127.98')dnl I have used make in /etc/mail/ to apply the changes to sendmail.cf and then reloaded sendmail for changes to take effect. I have gone through hotmail's Sender ID Framework SPF Record Wizard located at http://www.microsoft.com/mscorp/safety/content/technologies/senderid/wizard/ and setup my SPF record with zoneedit as: v=spf1 a ip4:72.249.127.98 ~all My IP is not blacklisted, and everything gets sent find to hotmail's server as this verbose output of sendmail shows: 050 >>> EHLO ipalaces.org 050 250-bay0-mc11-f13.bay0.hotmail.com (3.3.2.16) Hello [72.249.127.98] 050 250-SIZE 29696000 050 250-PIPELINING 050 250-8bitmime 050 250-BINARYMIME 050 250-CHUNKING 050 250-AUTH LOGIN 050 250-AUTH=LOGIN 050 250 OK 050 >>> MAIL From:<root@ipalaces.org> SIZE=325 AUTH=<> 050 250 root@ipalaces.org....Sender OK 050 >>> RCPT To:<ek_opteron@hotmail.com> 050 >>> DATA 050 250 ek_opteron@hotmail.com 050...

newbie question: sendmail doesn't send mail to external mail account.
Hi there, It seems send mail doesn't send mail to external mail account in my FreeBSD 4.8 BOX. However, I'm able to receive mail from external mail, such as yahoo, hotmail account. My config is: FreeBSD 4.8 ISP: bell Sympatico high speed with dynamic IP address. SMTP port is enabled on the router/firewall. Can anyone help? bluesnow#mail -v calvin2k_cn@yahoo.com Subject: This is a test. Do you hear me? EOT calvin2k_cn@yahoo.com... Connecting to [127.0.0.1] via relay... 220 bluesnow.gotdns.com ESMTP Sendmail 8.12.8p1/8.12.8; Thu, 26 Jun 2003 17:14:51 -0400 (EDT) >>> EHLO bluesnow.gotdns.com 250-bluesnow.gotdns.com Hello localhost [127.0.0.1], pleased to meet you 250-ENHANCEDSTATUSCODES 250-PIPELINING 250-8BITMIME 250-SIZE 250-DSN 250-ETRN 250-DELIVERBY 250 HELP >>> MAIL From:<cguan@bluesnow.gotdns.com> SIZE=68 250 2.1.0 <cguan@bluesnow.gotdns.com>... Sender ok >>> RCPT To:<calvin2k_cn@yahoo.com> >>> DATA 250 2.1.5 <calvin2k_cn@yahoo.com>... Recipient ok 354 Enter mail, end with "." on a line by itself >>> . 250 2.0.0 h5QLEpDJ006984 Message accepted for delivery calvin2k_cn@yahoo.com... Sent (h5QLEpDJ006984 Message accepted for delivery) Closing connection to [127.0.0.1] >>> QUIT 221 2.0.0 bluesnow.gotdns.com closing connection bluesnow# sendmail -bp /var/spool/mqueue (2 requests) -----Q-ID----- --Size-- -----Q-Time----...

Sendmail won't submit outgoing mail to localhost
Hi List, I'm running Sendmail 8.12.11 on Red Hat 9 Kernel 2.4.20-31-9 I can successfully send mail to my Sendmail server, but when I try to send mail out from the Sendmail server, I get the following message: makeconnection: cannot bind socket [0.0.0.0] address already in use. Below I include the d0 display and netstat The submit.cf file I use has the line "DaemonPortOptions=Name=NoMTA, Addr=127.0.0.1, M=E" Here is what netstat shows : Proto Recv-Q Send-Q Local Address Foreign Addr State tcp 0 0 0.0.0.0:37 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:587 0.0.0.0:* LISTEN tcp 0 0 192.168.1.16:53 0.0.0.0:* LISTEN tcp 0 0 66.138.30.243:53 0.0.0.0:* LISTEN tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:953 0.0.0.0:* LISTEN To me it seems Sendmail is being told to submit outgoing mail using port 587 to address 0.0.0.0 instead of localhost 127.0.0.1 Below is the d0 display Version 8.12.11 Compiled with: DNSMAP LOG MATCHGECOS MIME7TO8 MIME8TO7 NAMED_BIND NETINET NETUNIX NEWDB PIPELINING SCANF USERDB XDEBUG ============ SYSTEM IDENTITY (after readcf) ========= (short domain name) $w = nsw2 (canonical domain name) $j = nsw2.lin-nett.com (subdomain name) $m = lin-nett.com (node name) $k = nsw2 ======...

Mail won't check mail
Ihad a difficulty yesterday, and after I recovered, I found that Mail won't check mail. I send an email from my .mac account to my earthlink account and mail will not retreive it. I checked my email using the web-email and found the mail there, and some mail from others. What could cause Mail to stop retreiving mail? How can I fix it? Thanks, AndyD In article <1grf1p0.1m0bixe1503zn4N%andyda@earthlink.net>, Andy Dannelley <andyda@earthlink.net> wrote: > Ihad a difficulty yesterday, and after I recovered, I found that Mail > won't check mail. > > I send an email from my .mac account to my earthlink account and mail > will not retreive it. > > I checked my email using the web-email and found the mail there, and > some mail from others. > > What could cause Mail to stop retreiving mail? > > How can I fix it? Did you try repairing permissions? Did you check your Account settings, including advanced, to make sure that nothing was changed? Cathy -- "there's a dance or two in the old dame yet." - mehitabel C.Stevenson, M.D. cats1921@invalidsonic.net Cathy Stevenson <cats1921@invalidsonic.net> wrote: > In article <1grf1p0.1m0bixe1503zn4N%andyda@earthlink.net>, Andy > Dannelley <andyda@earthlink.net> wrote: > > > Ihad a difficulty yesterday, and after I recovered, I found that Mail > > won't check mail. > > > > I send an email from my .mac...

'mail'/'sendmail' with higher priority??
Is there a way to send high priority mails to the other specific unix users, by using my unix login? I checked with the options for 'mail' and 'sendmail' and couldn't find anything relevant to it. qazmlp1209@rediffmail.com writes: > Is there a way to send high priority mails to the other specific unix > users, by using my unix login? I checked with the options for 'mail' > and 'sendmail' and couldn't find anything relevant to it. Normally, mail goes into a queue for delivery. And the queue process sends out the mail. With the right priviled...

Sending mail without sendmail or highly secure sendmail
Hello all, I am setting up a very secure Red Hat Enterprise Linux Advanced Server version 4 update 6 server. My sendmail version is 8.13.1. My mail server is a Windows 2003 Server with Exchange 2003 with its patches. They are both on the same subnet. DNS is on and it will resolve the mail server's name and IP. SSH, SCP, SFTP, and such tools are the only networkable protocols on. NFS if off, MOUNTD is off, PORTMAP is off, and such. Until just recently sendmail was off on the RHEL server as part of the hardening procedure. However part of the auditing requirements is for a mail message to go out to some admin if certain events occur such as "disk is full," "a panic occurred," "the system rebooted" etc. So I will perhaps cut sendmail on and mitigate the risk as best as possible. So, this sounds dumb, but can you send mail without sendmail. I think perhaps no, but I thought I'd ask anyway. Secondly does anyone have a harden .mc file from which they could share what they did? Of course you can fudge in phoney IP and names to protect your secured environment. Advice or insight do any of you have on securing sendmail is appreciated? I want to avoid such things as promiscuous relays, unqualified senders, etc etc. But if it must be ... it must be. :) Thanks George <george.e.sullivan@saic.com> wrote: > I am setting up a very secure Red Hat Enterprise Linux Advanced Server > version 4 update 6 server. My sendmai...

can't send mail using mail()
hello, i am new to sending mail with php. the first function i tried is the mail(). when i passed the required parameters (to, message,subject), the apache error log said that the parameters are uninitialised. but the parameters already had value. do you know what is wrong? thank you fasisi wrote: > hello, > > i am new to sending mail with php. the first function i tried is the > mail(). when i passed the required parameters (to, message,subject), > the apache error log said that the parameters are uninitialised. but > the parameters already had value. > > do you know what is wrong? > > thank you Sorry, my crystal ball is broken. I can't see your code. Try posting your code so we can see what might be wrong. -- ================== Remove the "x" from my email address Jerry Stuckle JDS Computer Training Corp. jstucklex@attglobal.net ================== On Mar 16, 8:14=A0pm, Jerry Stuckle <jstuck...@attglobal.net> wrote: > fasisi wrote: > > hello, > > > i am new to sending mail with php. the first function i tried is the > > mail(). when i passed the required parameters (to, message,subject), > > the apache error log said that the parameters are uninitialised. but > > the parameters already had value. > > > do you know what is wrong? > > > thank you > > Sorry, my crystal ball is broken. =A0I can't see your code. > > Try posting your code so we can s...

Why won't Mail send?
I try sending a message but it goes right into the Outbox...no progress bar in the Activity Monitor, no audible "swish", Connection Doctor shows green dots for all accounts in/out... I quit Mail and re-launch, open the message and click SEND and it goes right away. Happening every time now, with dot.Mac, Yahoo and other POP accounts. Makes me wanna switch to Entourage (ugh). I've deleted my com.mail preferences, rebuilt my mailboxes but still no luck. Anyone had this issue before? In article <170520082231493311%melvin@nospam.net>, melvin <melvin@nospam.net> wrote: > I try sending a message but it goes right into the Outbox...no progress > bar in the Activity Monitor, no audible "swish", Connection Doctor > shows green dots for all accounts in/out... > > I quit Mail and re-launch, open the message and click SEND and it goes > right away. Happening every time now, with dot.Mac, Yahoo and other POP > accounts. Makes me wanna switch to Entourage (ugh). > > I've deleted my com.mail preferences, rebuilt my mailboxes but still no > luck. Anyone had this issue before? This appears very similar to a problem I (and some other posters to this group) have been having with Mail. It is a fairly recent problem, so it may be a bug in a fairly new version. Quite often when I attempt to send a mail message I get a message (usually but not always immediately) that says something like "unable to send . . .&...

Mail merge doesn't mail and/or doesn't merge
Mail merge doesn't mail and/or doesn't merge With me at least it doesn't. We are getting too many false positives on our bcc-mailing lists, so I decided to give the mail merge feature in PM 4.41 a go. The goal was to simultaneously send messages addressed to multiple recipients. I made a csv file containing nine of my own addresses in a column called ~kemail~, made this the data file, checked the box for the first field to be the fieldname and sent the email with the string ~kemail~ in the address box. I also attached a pdf file. PM reported a successful transaction, b...

Can't get any mail out with sendmail
Hello everyone I'm using sendmail as part of my A@H 2.8 setup. The environment is mixed with windows server acting as the main mail "server". I want to configure sendmail to use that server as smart-host for all the mail traffic in the office and outside of it, this server is accepting connections from the office ip subnet range. No authentication is used. Here's what I've done so far in my /etc/mail/sendmail.mc <<< FEATURE(`accept_unresolvable_domains')dnl dnl FEATURE(`relay_based_on_MX')dnl LOCAL_DOMAIN(`localhost.localdomain')dnl MASQUERADE_AS(`my.domain.tld')dnl FEATURE(masquerade_envelope)dnl dnl FEATURE(masquerade_entire_domain)dnl dnl MASQUERADE_DOMAIN(localhost)dnl dnl MASQUERADE_DOMAIN(localhost.localdomain)dnl dnl MASQUERADE_DOMAIN(mydomainalias.com)dnl dnl MASQUERADE_DOMAIN(mydomain.lan)dnl define(`SMART_HOST', `internal.exchange-server.dns-name.local') MAILER(smtp)dnl MAILER(procmail)dnl >>> Now, if I go to this `internal.exchange-server.dns-name.local' and do manual mail posting to, say gmail, all is working fine. But when I try to use sendmail as the middle man, it doesn't for some reason seem to work. Here are the logs from /var/log/maillog <<< Jun 5 01:09:07 asterisk1 sendmail[3433]: k54M7IBZ003430: to=<hq4ever@gmail.com>, ctladdr=<root@asterisk1.local> (0/0), delay=00:00:40, xdelay=00:00:40, mailer=esmtp, pri=120305, relay=gmail.com., dsn=4.0.0, stat=Deferred: N...

Mac Mail won't send
I recently switched from Eudora to the Mac Mail which came with OS X.5 Mac Mail worked well but all of a sudden it won't send. Any solutions? In the meantime I have gone back to Eudora. In article <flo9lo$if2$1@theodyn.ncf.ca>, aa994@FreeNet.Carleton.CA (Gunther Abrahamson) wrote: > I recently switched from Eudora to the Mac Mail which came with OS X.5 > > Mac Mail worked well but all of a sudden it won't send. Any solutions? > > In the meantime I have gone back to Eudora. I can think of two problems I've run into which generate the same symptoms: (1) somehow, the default account for sending got switched or modified in someway, so that it is no longer valid; (2) Mail encountered an error when trying to send mail (perhaps a transient connectivity glitch) and so is still in "off-line" mode. Check for (1) by looking in the Mail Preferences, and confirming that all settings (including any port numbers and/or passwords) are correct. Check for (2) by looking for a little Alert symbol - this would appear beside the Inbox item in the mailbox pane on the left. If Mail got stuck sending, you will also see an Out box (I forget exactly how it is labelled). If you see the alert symbol, double-click on it... ...

mail() function doesn't seem to be sending MAIL FROM: properly
I'm trying to send an email using the mail() function. I've carefully made use of the ini_set(SMTP, "mail.my.server") function to set my SMTP server and also to set my From: address. I'm still getting a "Relaying not explicitly allowed: fakeemail@fakedomain.com" response from the server however, when I try and set a recipient who is outside of my own domain. This makes my think that the From: address is somehow not getting sent to my server properly or that I'm pointing at the wrong server. The confounding thing is that it was working for a while and I don't think I changed anything and it just stopped. I'm running these PHP pages for a client off of one of those cheap hosting services, I think it's called 1dollarhost.com or something, although I can't remember at the moment. Has anyone else had trouble with this or found a solution? Many thanks, Todd tzuccolo2001@yahoo.com wrote: > I'm trying to send an email using the mail() function. I've carefully > made use of the ini_set(SMTP, "mail.my.server") function to set my SMTP > server and also to set my From: address. I'm still getting a "Relaying > not explicitly allowed: fakeemail@fakedomain.com" response from the > server however, when I try and set a recipient who is outside of my own > domain. This makes my think that the From: address is somehow not > getting sent to my server properly or that I'm pointing at...

problem with sendmail, not sending mails to some mail servers like yahoo except gmail
hi this is sasidhar, we have CentOS5 with default sendmail configuration. Initially it is sending mails to gmail, yahoo etc. last few days it is not sending mails to yahoo. In maillog I observed that for yahoo mails the stat value is deferred. I tried everything by browsing google but I didn't find any solution to this problem. Finally I came here with lots of hope. In mail queue there are more than 1 lack, most of them yahoo, rediff etc. For gmail it is not giving any problem every mail is going. please give any suggestions to solve this problem. Thanks, sasidhar. On 11/5/2009 11:36 PM, sasidhar prabhakar wrote: > hi this is sasidhar, > > we have CentOS5 with default sendmail configuration. > Initially it is sending mails to gmail, yahoo etc. last few days it is > not sending mails to yahoo. > In maillog I observed that for yahoo mails the stat value is deferred. > I tried everything by browsing google but I didn't find any solution > to this problem. > Finally I came here with lots of hope. > > In mail queue there are more than 1 lack, most of them yahoo, rediff > etc. For gmail it is not giving any problem every mail is going. > > please give any suggestions to solve this problem. > > Thanks, > sasidhar. > > > Deferred is generally not a problem. As your queue runs (usually, once an hour), it will try again (and again, as necessary). You can force sendmail to run the queue by running it wi...

Can't send mail using Mail.app, but can with Thunderbird
Hello, I am having one heck of a time, and it's killing me. I am new to the world of OS X but am adapting well, with one exception - Mail. Here's the deal. Using Thunderbird, I can send mail out with password authentication. I can send it via port 25 normally or via port 465 via SSL. I can also telnet to port 25 and see the standard email connection, and I can even fake it out using the proper sequence of commands. I can telnet to port 465, although since that's SSL I can't easily fake key negotiation or anything like that - but, it does establish a connection. However, Mai...

Sendmail won't send outside my subnet
Sendmail won't send outside my subnet. I'm pretty sure this isn't a DNS problem. All nslookups resolve without any problem, and running sendmail with the the -bv option for verifying address seems to work nicely. The server receives mail from anywhere and sends it locally and within the subnet, but attempts to connect outside the subnet result in sendmail hanging somewhere in the middle of the SMTP communication process. Example: david@myserver:~/work$ /usr/sbin/sendmail -v me@yahoo.com <zendstuff me@yahoo.com... Connecting to [127.0.0.1] via relay... 220 myserver.xxx.edu ESMTP Sendmail 8.14.3/8.14.3; Fri, 28 Aug 2009 12:50:10 -0500 >>> EHLO myserver.xxx.edu 250-myserver.xxx.edu Hello localhost.localdomain [127.0.0.1], pleased to meet you 250-ENHANCEDSTATUSCODES 250-PIPELINING 250-EXPN 250-VERB 250-8BITMIME 250-SIZE 250-DSN 250-ETRN 250-DELIVERBY 250 HELP >>> VERB 250 2.0.0 Verbose mode >>> MAIL From:<david@myserver.xxx.edu> SIZE=27 250 2.1.0 <david@myserver.xxx.edu>... Sender ok >>> RCPT To:<me@yahoo.com> >>> DATA 250 2.1.5 <me@yahoo.com>... Recipient ok 354 Enter mail, end with "." on a line by itself >>> . Any ideas? I'm running this on a new Debian Lenny server. davidst <davidst.vz@gmail.com> wrote in <48f320f5-fa15-4471-b4a1-8c8c211f0ad3@g6g2000vbr.googlegroups.com>: > Sendmail won't send outside my subnet. I'm pretty sure this isn&...

Mac Mail won't send #2
Problem resolved on its own. But thanks for the info. I have saved it for future reference. ...

Can't move mail from Sendmail Server to workstation
Hello, I'm running Sendmail 8.12.11 on a RedHat 9 box I can send and receive mail when seated directly at the Sendmail/RedHat box I can send mail outfrom my XP Professional workstation to the Sendmail/Redhat Box using the mail client and Sendmail sends mail out OK. But, when mail comes in and is placed in /var/spool/mail mailbox, and I try to get that mail using the mail client, I get a "connected" message but nothing happens. Did I define the wrong delivery agent ? Do I need to define another one ? Any help would be appreciated. Here's my mc file : VERSIONID(`Red Hat Linux 9')dnl OSTYPE(`linux')dnl DOMAIN(`lin-nett.com')dnl undefine(`UUCP_RELAY')dnl undefine(`BITNET_RELAY')dnl define(`confCF_VERSION', `8.12.11')dnl define(`confDEF_USER_ID', ``8:12'')dnl define(`confTO_QUEUEWARN', `3h')dnl define(`confTO_QUEUERETURN', `3d')dnl define(`confTO_CONNECT', `2m')dnl define(`QUEUE_DIR', `/var/spool/mqueue')dnl define(`STATUS_FILE', `/etc/mail/statistics')dnl define(`ALIAS_FILE', `/etc/mail/aliases')dnl define(`confQUEUE_SORT_ORDER', r)dnl define(`confUSERDB_SPEC', `/etc/mail/userdb.db')dnl define(`confPRIVACY_FLAGS', `authwarnings,novrfy,restrictqrun')dnl define(`confAUTH_OPTIONS', `A')dnl define(`confSMTP_MAILER', `esmtp')dnl define(`LOCAL_MAILER_ARGS', `procmail -t -Y -a $h -d $u')dnl DAEMON_OPTIONS(`Port=smtp,Name=MTA'...

Mail Links In Web Apps won't open any mail apps? Help!!! Thanks
that is if I click on a link in Safari or Internet Explorer that contains an e-mail address it won't open a mail app. the dock kind of moves a bit and that's it. this is a total pain in the butt because these address's are imbedded and I can't see what the address is. I checked the useless discussions on the apple sight and they were uh...useless. I checked all preferences and that didn't fix it.Someone suggested that the default setting in the apple mail app would have a place to set it but that didn't work. Any suggestions? thanks for the help -- Barry ...

Sendmail authentificates, client cann still send mails with fake "Mail From:" tag
hello, i've just finished my first AUTH sendmail configuration, client cann authentificate himself via LOGIN/PLAIN with TLS. I've noticed though that sendmail doesn't pose any restraints regarding the mail from: tag. lets say my domain is test.de, my loginname ist alex now i cand send mails from arbitrary name@ test.de...actually from arbitrary name @ arbitrary domain :) Am i missing something here ? what i would like is: user authentificates -> he is allowed to send mail only with the prior stipulated address (his address) Thanks! Regards, Alex alexThor wrote: > hello, > > i've just finished my first AUTH sendmail configuration, client cann > authentificate himself via LOGIN/PLAIN with TLS. I've noticed though > that sendmail doesn't pose any restraints regarding the mail from: tag. > lets say my domain is test.de, my loginname ist alex > now i cand send mails from arbitrary name@ test.de...actually from > arbitrary name @ arbitrary domain :) > > Am i missing something here ? > > what i would like is: user authentificates -> he is allowed to send > mail only with the prior stipulated address (his address) > Thanks! > > Regards, > Alex http://www.jmaimon.com/sendmail http://www.jmaimon.com/sendmail/#rewritesender http://www.jmaimon.com/sendmail/patches/rewrite_sender.tar.gz This should do exactly what you want. jmaimon@ttec.com wrote: > > http://www.jmaimon.com/sendmail > ht...

Mail for OS X on new hard drive won't import Mail on old hd
I recently installed an additional hard drive (running Tiger), but I kept my old one (running Panther), too, to use as a backup. After resolving a few snags, the data and apps transferred over OK, but two days ago I (very foolishly) tried to make a change in the name I use as Administrator (or at least that's what I meant to do), and all the apps on my new hard drive forgot their passwords, preferences, etc. What a pain! I can eventually fix everything, except I can't get Mail for OS X on the new hd to import data from the Mail on the old hd. In the new Mail, under the File...

Mail for OS X on new hard drive won't import Mail on old hd
I recently installed an additional hard drive (running Tiger), but I kept my old one (running Panther), too, to use as a backup. After resolving a few snags, the data and apps transferred over OK, but two days ago I (very foolishly) tried to make a change in the name I use as Administrator (or at least that's what I meant to do), and all the apps on my new hard drive forgot their passwords, preferences, etc. What a pain! I can eventually fix everything, except I can't get Mail for OS X on the new hd to import data from the Mail on the old hd. In the new Mail, under the File...

Sendmail cannot send my mail
I am on a typical home user setup (dialup connection, SMTP server listens on exotic port 25000 and I need to enter a password to connect to the server). The various mailers I have used - outlook, outlook express, mozilla mail - have no problems sending my mail successfully. But when I try to use sendmail all I get is something like: Nov 22 18:56:51 turki sendmail[28724]: iAL4OmF22670: to=cga2001@eml.cc, ctladdr=gavron (500/500), delay=1+19:32:03, xdelay=00:00:10, mailer=relay, pri=815114, relay=b.mx.mailbarn.net. [66.54.152.36], dsn=4.0.0, stat=Defer red: Connection refused by b.mx.mailbarn.net. sendmail proceeds to recycle the mail for the following five days without success. I have read the FAQs, made countless changes to the sendmail.mc file, cycled sendmail at least a hundred times over the last couple of months to no avail. Since on average successfully setting up a mail account in one of the above mailers takes under two minutes, I am beginning to suspect that there is a bug in the version of sendmail I am running - sendmail version 8.11.4 release 3 as generated by Redhat 7.2 from an rpm. Is there a short howto describing what the average home user on a dialup connection should do to make sendmail connect to the outside world? I was thinking of using this as a checklist to make sure I am not leaving out anything. If no such document exists could anyone direct me to sample configuration files that are known to work in this type of setup with this particular versi...

sendmail clients don't try backup mail server
Hello, In testing a backup mail server, I shut down the primary, and started sendmail (server configuration) on the secondary server. It didn't quite work like I thought. I thought that the local sendmail clients would examine the mx records and try the different servers in order until it found one that worked or it gave up trying. The interesting thing is that emails sent from outside the LAN will find the backup mail server. Running sendmail in verbose mode, I can see the first attempt is made to the primary, since I had shut sendmail down on the primary, it tried, and succesfully delivered the mail to the backup. THe folks in the DNS group figure DNS is probably OK because that worked. The systems involved are SUNs running 2.8, 2.9 NIS+ and sendmail 8.12.10. Below I ran sendmail with the verbose option and switch -d8.8 so I could follow the DNS queries. It tries to send it to the primary server, but that fails, and doesn't attempt to deliver to any of the others. The backup server is called aka and the client is hol. /usr/lib/sendmail -d8.8 -v stuart dns_getcanonname(hol, trymx=1) dns_getcanonname: trying hol.xxxx.noaa.gov (A) ;; res_nquerydomain(hol, xxxx.noaa.gov, 1, 1) ;; res_query(hol.xxxx.noaa.gov, 1, 1) ;; res_nmkquery(QUERY, hol.xxxx.noaa.gov, IN, A) ;; res_send() ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 46347 ;; flags: rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0 ;; hol.xxxx.noaa.gov, type = A, class = IN ;; Queryi...

Web resources about - sendmail won't send mail again - comp.mail.sendmail

Resources last updated: 3/25/2016 9:37:36 AM