
Hi, On my machine I have KMail setup and working fine via a proxy server for SMTP and POP3. My problem is, is that I have a number of perl scripts, that use 'Mail' to send emails. This works fine for local emails (me@myserver), but has problems with remote ones (me@yahoo.com) The initial error was 'unable to resolve DNS...', which is fine as I don't have a DNS server on the machine. I 'fixed' this by adding the domains of the email addresses I want to send (only 5-6) to my hosts file pointing to my proxy server. The problem I am stuck on is that my proxy server is rejecting the send attempts because the 'sender' is me@myserver rather than me@myISP.com. Does anyone know if you can pass an account name and password to 'Mail' as a commandline parameter, or think of another solution? Cheers Phil -- Linux 2.4.4-4GB 4:47pm up 8 days, 22:46, 3 users, load average: 0.29, 0.10, 0.08

Phil, Why don't you just correct me@yourserver to me@yourserver.ext ? it must work Phil Shrimpton wrote:
Hi,
On my machine I have KMail setup and working fine via a proxy server for SMTP and POP3.
My problem is, is that I have a number of perl scripts, that use 'Mail' to send emails. This works fine for local emails (me@myserver), but has problems with remote ones (me@yahoo.com)
The initial error was 'unable to resolve DNS...', which is fine as I don't have a DNS server on the machine. I 'fixed' this by adding the domains of the email addresses I want to send (only 5-6) to my hosts file pointing to my proxy server.
The problem I am stuck on is that my proxy server is rejecting the send attempts because the 'sender' is me@myserver rather than me@myISP.com.
Does anyone know if you can pass an account name and password to 'Mail' as a commandline parameter, or think of another solution?
Cheers
Phil

On Wednesday 06 February 2002 18:03, NP AE Ruslan Nesterov wrote: Hi,
Why don't you just correct me@yourserver to me@yourserver.ext ? it must work
Not sure what you mean here. The perl scripts are running either as Root or my account on myserver, neither of which has accounts with my ISP <g> What I think I need to do is somehow change the 'sender' to an account that is on my isp, rather than root@myserver ot me@myserver Phil -- Linux 2.4.4-4GB 5:14pm up 8 days, 23:13, 3 users, load average: 0.24, 0.18, 0.11

Phil, Lets rollback a little. You use a perl script to send e-mail right? As I guesed you use cpan module for sending an e-mail. Not using a sendmail program right? Regards, Ruslan O. Nesterov Phil Shrimpton wrote:
On Wednesday 06 February 2002 18:03, NP AE Ruslan Nesterov wrote:
Hi,
Why don't you just correct me@yourserver to me@yourserver.ext ? it must work
Not sure what you mean here. The perl scripts are running either as Root or my account on myserver, neither of which has accounts with my ISP <g>
What I think I need to do is somehow change the 'sender' to an account that is on my isp, rather than root@myserver ot me@myserver
Phil

On Wednesday 06 February 2002 18:23, NP AE Ruslan Nesterov wrote: Hi,
Lets rollback a little. You use a perl script to send e-mail right?
Yes.
As I guesed you use cpan module for sending an e-mail. Not using a sendmail program right?
Don't think so, an example... my $mailcmd = "| Mail -s '[Update] New File'"; $mailcmd = "$mailcmd $users"; $mailfh = new IO::File $mailcmd or die "Could not Exec($mailcmd): $!\n"; ..so I think that is just spwning the standard 'Mail' program Phil -- Linux 2.4.4-4GB 12:01am up 9 days, 6:00, 3 users, load average: 1.96, 1.07, 0.42
participants (2)
-
NP AE Ruslan Nesterov
-
Phil Shrimpton