RE: FW: Sending Email from script



-----Original Message-----
From: Andrew Sackville-West [mailto:andrew@xxxxxxxxxxxxxxxxxxxx]
Sent: Thursday, July 19, 2007 1:15 PM
To: debian-user@xxxxxxxxxxxxxxxx
Subject: Re: FW: Sending Email from script

please don't top-post.


On Thu, Jul 19, 2007 at 12:26:40PM -0400, Mace, Nathan wrote:
I tried changing the option below and restarted Exim. That doesn't
seem to have made any difference in the log file.

might be my bad. the proper line is

QUEUERUNNEROPTIONS='-d'
^

but the line should already be in your /etc/default/exim4 and just needs
editing.

BTW, I just tested it on my mail server and it promptly produces copious
output to stdout when you /etc/init.d/exim4 restart



You are correct, the line was in my config. I tried adding the "S" on
the end, that didn't make any difference. When I do a
"/etc/init.d/exim4 restart" it tells me it is restarting then drops me
back to the command line.





I setup Evolution, and set it to use our exchange box as a smtp
server, that worked fine. When I set the smtp server to that box, I
get a
"172.16.0.39 Connection Refused" error. 172.16.0.39 is the IP of the
server.

now I'm confused. first you say it works fine and then you say it
doesn't. please elaborate.




That was a typo on my part. What I meant to say was that when I used
the exchange server as my SMTP server I could send mail fine through
Evolution. However when used the IP address of the linux server, I got
a connection refused error.






I also JUST noticed that when I do a "ps aux | grep exim" there aren't

any exim processes running! So I went to \etc\init.d\ and run
"./exim4 start". It reports that it is starting the MTA... No error
messages are reported. However doing a "ps" still doesn't show any
exim processes!
There are no errors in syslog related to exim not starting that I can
see.

wah? what does the log show just after attempting to start it?



The exim4 log shows several entries stating such and such message is
frozen.



please provide output of

dpkg -l exim\* | awk '/^ii/ { print $2, $3 }'




Running this command gives me the following:

exim4 4.63-17
exim4-base 4.63-17
exim4-config 4.63-17
exim4-daemon-light 4.63-17


also please provide /etc/exim4/update-exim4.conf.conf (you can strip the
comments.




That conf file contains:


dc_eximconfig_configtype='internet'
dc_other_hostnames='student-test.ucwv.edu'
dc_local_interfaces='127.0.0.1'
dc_readhost=''
dc_relay_domains=''
dc_minimaldns='false'
dc_relay_nets=''
dc_smarthost=''
CFILEMODE='644'
dc_use_split_config='false'
dc_hide_mailname=''
dc_mailname_in_oh='true'
dc_localdelivery='mail_spool'

Should the dc_local_interfaces='127.0.0.1' be the "real" ip address?

Also, I've set Outlook to indent emails that I reply to, but it isn't
doing it. I either need to fix it, or find another client. Sorry if my
emails are hard to read, I'm working fixing that....

On top of that, I'm a little unsure of where I should put my replies?
Once I get the original email to be indented, is it "OK" to post replies
in the body of the email I'm replying to? I'm a little rusty on my
"posting to mailing list" etiquette.

Nathan


thanks

A


whoops, sent this to Nathan personally instead of thelist. sorry...

On Wed, Jul 18, 2007 at 03:07:06PM -0400, Mace, Nathan wrote:
I changed the IP to 127.0.0.1. That sill didn't help.

Here are the contents of the log file:

student-test:/etc# more /var/log/exim4/mainlog
2007-07-18 08:12:42 exim 4.63 daemon started: pid=5024, -q30m,
listening for SMTP on [127.0.0.1]:25
2007-07-18 08:12:42 Start queue run: pid=5025
2007-07-18 08:12:42 End queue run: pid=5025
2007-07-18 08:15:29 exim 4.63 daemon started: pid=5404, -q30m,
listening for SMTP on [172.16.0.39]:25
2007-07-18 08:15:29 Start queue run: pid=5405
2007-07-18 08:15:29 End queue run: pid=5405
2007-07-18 08:15:52 1IB8Rc-0001Pd-KU <= nathan@xxxxxxxxxxxxxxxxxxxxx

U=nathan P=local S=401
2007-07-18 08:15:52 1IB8Rc-0001Pd-KU ** myaddress@xxxxxxxx:
Unrouteable address

well... I don't know what to tell you. Couple things you could try.
First, can you get to the net from this machine? I know its basic, but

sometimes...

Also, edit /etc/default/exim4 and put a QUEUERUNNEROPTION='-d' in
there, restart exim4 and look at all the pretty output and see if you
can see why its not routeing the address.

also look at man exim as there are a number of options for running
exim in various debugging modes that might help.

I've never had a problem with exim... it mostly just works for me in a

number of configurations, so without sitting down and seeing _exactly_

how its configured, I'm out of ideas.

A









Relevant Pages

  • Unable to recieve email from an IP/Domain
    ... I've got a front end SMTP server which is running exchange 2000 enterprise. ... one of our clients is unable to send us emails. ... 121 in the SMTP log file. ...
    (microsoft.public.exchange.connectivity)
  • RE: OMA and Outgoing Spam
    ... Someone hacked a user account and use it to spam emails; ... Your Exchange server is open relaying emails;(You have checked it ... Your server is under RNDR Attack. ... When you enable recipient filtering on the SMTP virtual server, ...
    (microsoft.public.windows.server.sbs)
  • Re: Exchange on SBS 2003 not delivering mail to user
    ... Microsoft CSS Online Newsgroup Support ... How you configured the mail server to send emails? ... on the ISP mail server when using pop3 connector to receive emails. ...
    (microsoft.public.windows.server.sbs)
  • RE: Exchange SMTP Queues full - not receiving external email
    ... I understand that you found many emails were ... attack, Reverse NDR attack or some internal workstations are infected by ... This issue can occur if your exchange server is being used as a relay ... When you enable recipient filtering (if you are using SMTP for incoming ...
    (microsoft.public.windows.server.sbs)
  • RE: SMTP sending failure, connection is dropped by remote host
    ... receive emails is correctly. ... On the SBS server, click Start, click Run, type "cmd" and click OK. ... Microsoft CSS Online Newsgroup Support ...
    (microsoft.public.windows.server.sbs)

Loading