vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hi ng! Now I have a problem with exim4 and outgoing mail that drives me a little bit crazy since three days (searching the web and the man-pages). Though I have uncommented the client-section in /etc/exim4/conf.d/auth/30_exim4-config_examples (plain for my isp alice-dsl.net) and then have run update-exim4.conf and restarted exim (and I am in passw.client of course), I can't send emails to my yahoo-adress for example, though local mail delivery works perfect and receiving messages from local and from web via fetchmail too! When I run exim4 -v -odf jenslindermann@yahoo.de My cute email .. I get this: LOG: MAIN <= root@COMPUTER U=root P=local S=278 delivering 1JnYiY-0001Hu-R5 R: smarthost for jenslindermann@yahoo.de T: remote_smtp_smarthost for jenslindermann@yahoo.de Connecting to out.alice-dsl.net [IP-ADRESS]:25 ... connected SMTP<< 220 out.alice-dsl.de SMTP Server Sun, 20 Apr 2008 14:25:44 +0200 SMTP>> EHLO Hades SMTP<< 250-out.alice-dsl.de Hello [IP-ADRESS] 250-TURN 250-SIZE 141557760 250-ETRN 250-PIPELINING 250-DSN 250-ENHANCEDSTATUSCODES 250-8bitmime 250-BINARYMIME 250-CHUNKING 250-VRFY 250-X-EXPS GSSAPI NTLM LOGIN 250-X-EXPS=LOGIN 250-AUTH GSSAPI NTLM LOGIN 250-AUTH=LOGIN 250-X-LINK2STATE 250-XEXCH50 250 OK SMTP>> MAIL FROM:<root@alice-dsl.net> SIZE=1310 SMTP>> RCPT TO:<jenslindermann@yahoo.de> SMTP>> DATA SMTP<< 250 2.1.0 root@alice-dsl.net....Sender OK SMTP<< 550 5.7.1 Unable to relay for jenslindermann@yahoo.de SMTP<< 554 5.5.2 No valid recipients SMTP>> QUIT LOG: MAIN ** jenslindermann@yahoo.de R=smarthost T=remote_smtp_smarthost: SMTP error from remote mail server after RCPT TO:<jenslindermann@yahoo.de>: host out.alice-dsl.net [IP-ADRESS]: 550 5.7.1 Unable to relay for jenslindermann@yahoo.de LOG: MAIN <= <> R=1JnYiY-0001Hu-R5 U=Debian-exim P=local S=1193 delivering 1JnYih-0001Hx-H8 R: system_aliases for root@COMPUTER R: system_aliases for lindermann@COMPUTER R: userforward for lindermann@COMPUTER R: procmail for lindermann@COMPUTER T: procmail_pipe for lindermann@COMPUTER LOG: MAIN => lindermann <root@Hades> R=procmail T=procmail_pipe LOG: MAIN Completed LOG: MAIN Completed Hope you can help me - and again: sorry for my 'German' English. Jens -- Debian GNU/Linux 4.0 stable |
| |||
| Jens-Olaf Lindermann wrote: > Hi ng! > > Now I have a problem with exim4 and outgoing mail that drives me a little > bit crazy since three days (searching the web and the man-pages). Though I > have uncommented the client-section > in /etc/exim4/conf.d/auth/30_exim4-config_examples (plain for my isp > alice-dsl.net) and then have run update-exim4.conf and restarted exim (and > I am in passw.client of course), I can't send emails to my yahoo-adress for > example, though local mail delivery works perfect and receiving messages > from local and from web via fetchmail too! > > When I run exim4 -v -odf jenslindermann@yahoo.de > My cute email > . > > I get this: > > LOG: MAIN > <= root@COMPUTER U=root P=local S=278 > delivering 1JnYiY-0001Hu-R5 > R: smarthost for jenslindermann@yahoo.de > T: remote_smtp_smarthost for jenslindermann@yahoo.de > Connecting to out.alice-dsl.net [IP-ADRESS]:25 ... connected > SMTP<< 220 out.alice-dsl.de SMTP Server Sun, 20 Apr 2008 14:25:44 +0200 > SMTP>> EHLO Hades > SMTP<< 250-out.alice-dsl.de Hello [IP-ADRESS] > 250-TURN > 250-SIZE 141557760 > 250-ETRN > 250-PIPELINING > 250-DSN > 250-ENHANCEDSTATUSCODES > 250-8bitmime > 250-BINARYMIME > 250-CHUNKING > 250-VRFY > 250-X-EXPS GSSAPI NTLM LOGIN > 250-X-EXPS=LOGIN > 250-AUTH GSSAPI NTLM LOGIN > 250-AUTH=LOGIN > 250-X-LINK2STATE > 250-XEXCH50 > 250 OK > SMTP>> MAIL FROM:<root@alice-dsl.net> SIZE=1310 > SMTP>> RCPT TO:<jenslindermann@yahoo.de> > SMTP>> DATA > SMTP<< 250 2.1.0 root@alice-dsl.net....Sender OK > SMTP<< 550 5.7.1 Unable to relay for jenslindermann@yahoo.de > SMTP<< 554 5.5.2 No valid recipients > SMTP>> QUIT > LOG: MAIN > ** jenslindermann@yahoo.de R=smarthost T=remote_smtp_smarthost: SMTP error > from remote mail server after RCPT TO:<jenslindermann@yahoo.de>: host > out.alice-dsl.net [IP-ADRESS]: 550 5.7.1 Unable to relay for > jenslindermann@yahoo.de > LOG: MAIN > <= <> R=1JnYiY-0001Hu-R5 U=Debian-exim P=local S=1193 > delivering 1JnYih-0001Hx-H8 > R: system_aliases for root@COMPUTER > R: system_aliases for lindermann@COMPUTER > R: userforward for lindermann@COMPUTER > R: procmail for lindermann@COMPUTER > T: procmail_pipe for lindermann@COMPUTER > LOG: MAIN > => lindermann <root@Hades> R=procmail T=procmail_pipe > LOG: MAIN > Completed > LOG: MAIN > Completed > > > Hope you can help me - and again: sorry for my 'German' English. > Jens > > > > Your smarthost will not relay mail from jenslindermann@yahoo.de - if you have a different "From:" email address, say, somebody@alice-dsl.de then it will probably work fine. Robert |
| |||
| Robert Harris wrote: > > Your smarthost will not relay mail from jenslindermann@yahoo.de - if you > have a different "From:" email address, say, somebody@alice-dsl.de then > it will probably work fine. Hi Robert, alas it will not... Local deliver works fine: As I send myself an email at my local adress, I will see it in mutt. But when I try to send e-mails to, say, jenslindermann@yahoo.de (to the www), there always comes the message "SMTP 550 5.7.1 Unable to relay..." This is strange, because with kmail or icedove smtp it works. confused Jens I know it is OT here, but in the german mailserver-group nobody answers. And beside - exim is not a mailserver but a mailclient in my case. ;-) -- Debian GNU/Linux 4.0 stable |
| |||
| Jens-Olaf Lindermann wrote: > Robert Harris wrote: > > > >> Your smarthost will not relay mail from jenslindermann@yahoo.de - if you >> have a different "From:" email address, say, somebody@alice-dsl.de then >> it will probably work fine. >> > > Hi Robert, > > alas it will not... Local deliver works fine: As I send myself an email at > my local adress, I will see it in mutt. But when I try to send e-mails to, > say, jenslindermann@yahoo.de (to the www), there always comes the > message "SMTP 550 5.7.1 Unable to relay..." This is strange, because with > kmail or icedove smtp it works. > > confused > Jens > > I know it is OT here, but in the german mailserver-group nobody answers. And > beside - exim is not a mailserver but a mailclient in my case. ;-) Exim is an MTA (Mail Transfer Agent) -- an SMTP mail server. It is not a POP3 or IMAC mailbox server -- an MDA (Mail Delivery Agent). Your "client" would be Mutt and/or Mail/Mailx, Icedove, KMail, etc. They are MUAs (Mail User Agents). Do you have Exim configured correctly? I receive nightly logs sent by INN running on a Sarge box, which go to my MTA+MDA (Stalker Internet Mail Server -- SIMS) running on an old Mac. I download them from a Ubuntu box into Thunderbird. I can also send mail to an Internet address from that same computer, if I use a FQDN. I do use a BIND9 DNS server on the LAN though, which would make addressing different than sending out to an ISP mailbox. So using a FQDN might be required in your case. Have you tried to reconfigure Exim with sudo dpkg-reconfigure exim4-config ? Maybe trying a low priority ( sudo dpkg-reconfigure -plow exim4-config ) to see all of the options. If available, -pcritical is even more thorough. You can choose one of four types of configurations. If I remember correctly, "Internet" should be the choice, indicating the mail is not to be kept on the local machine. Just read the questions carefully and select the best answer. Also check your /etc/aliases file to make sure it is correct because Exim uses it. - John No Microsoft, Apple, Intel, Trend Micro, nor Ford products were used in the preparation or transmission of this message. The EULA sounds like it was written by a team of lawyers who want to tell me what I can't do. The GPL sounds like it was written by a human being, who wants me to know what I can do. |
| |||
| John F. Morse wrote: Hi John, > Have you tried to reconfigure Exim with sudo dpkg-reconfigure exim4-config I have reconfigured it. 1. split in multiple files 2. SMTP and smarthost (fetchmail), 3. E-Mail-Name of my system: Name of my machine 4. IP 127.0.0.1 5. further domains: name of my machine 6. relay: empty 7. smtp.mailserver.org:25 8. Hide local E-Mail-Name: Yes 9. visible name: mailserver.org 10.minimize DNS: Yes 11.mbox /var/mail/ And I have also configured the client-section of my template-file in confd/. > Also check your /etc/aliases file to make sure it is correct because > Exim uses it. must there stand something special for me 'user'? Hope that there are some more informations for you. Jens -- Debian GNU/Linux 4.0 stable |
| |||
| On Sun, 20 Apr 2008 14:40:23 +0200, Jens-Olaf Lindermann wrote: > Though I > have uncommented the client-section > in /etc/exim4/conf.d/auth/30_exim4-config_examples (plain for my isp > alice-dsl.net) that's the wrong place, if I understand you correctly. from the top of this file: # The examples below are for server side authentication, when the # local exim is SMTP server and clients authenticate to the local # exim. in your case you don't want to authenticate against your local exim but you want your exim (as a client) to authenticate against your smarthost (i.e. alice). > and then have run update-exim4.conf and restarted exim (and > I am in passw.client of course), passwd.client is one of the two needed places. > SMTP<< 220 out.alice-dsl.de SMTP Server Sun, 20 Apr 2008 14:25:44 +0200 > SMTP>> EHLO Hades > SMTP<< 250-out.alice-dsl.de Hello [IP-ADRESS] > 250-TURN > 250-SIZE 141557760 > 250-ETRN > 250-PIPELINING > 250-DSN > 250-ENHANCEDSTATUSCODES > 250-8bitmime > 250-BINARYMIME > 250-CHUNKING > 250-VRFY > 250-X-EXPS GSSAPI NTLM LOGIN > 250-X-EXPS=LOGIN > 250-AUTH GSSAPI NTLM LOGIN > 250-AUTH=LOGIN > 250-X-LINK2STATE > 250-XEXCH50 > 250 OK > SMTP>> MAIL FROM:<root@alice-dsl.net> SIZE=1310 > SMTP>> RCPT TO:<jenslindermann@yahoo.de> > SMTP>> DATA doesn't look like any authentication actually happens. (and is out.alice-dsl.de really alice's smtp-relay for customers?) the second place (though you probably have that set?) is update-exim4.conf.conf, which needs a line like: dc_smarthost='smtp.alice.de' one trap I ran into was that the hostname in update-exim4.conf.conf and in passwd.client has to be _identical_. gregor -- .''`. http://info.comodo.priv.at/ | gpg key ID: 0x00F3CFE4 : :' : debian gnu/linux user, admin & developer - http://www.debian.org/ `. `' member of https://www.vibe.at/ | how to reply: http://got.to/quote/ `- NP: Josh With: Downhearted man blues |
| |||
| On Sun, 20 Apr 2008 22:11:56 +0200, Jens-Olaf Lindermann wrote: >> Also check your /etc/aliases file to make sure it is correct because >> Exim uses it. > must there stand something special for me 'user'? TTBOMK /etc/aliases is for _incoming_ mail, which doesn't seem to be your problem. /etc/email-addresses can be used to "translate" local usernames to mailadresses for outgoing mail. gregor -- .''`. http://info.comodo.priv.at/ | gpg key ID: 0x00F3CFE4 : :' : debian gnu/linux user, admin & developer - http://www.debian.org/ `. `' member of https://www.vibe.at/ | how to reply: http://got.to/quote/ `- NP: Cranberries: Linger |
| |||
| gregor herrmann wrote: > > # The examples below are for server side authentication, when the > # local exim is SMTP server and clients authenticate to the local > # exim. Hi Gregor, great, much help here for me newbie - thanks! I am so confused that information goes probably wrong. I have uncommented the client-side authentication 'plain' and 'login' in exim4.conf.template and run update. > doesn't look like any authentication actually happens. > (and is out.alice-dsl.de really alice's smtp-relay for customers?) smtp.alice-dsl.net is just an alias for out.alice-dsl.de is, which I have found out running the 'host' command. But how can I get authentication work? (I swear I write a tutorial for alice!) > the second place (though you probably have that set?) is > update-exim4.conf.conf, which needs a line like: > dc_smarthost='smtp.alice.de' This line is there and identical with passwd.client too. Grmpf! Jens -- Debian GNU/Linux 4.0 stable |
| |||
| On Sun, 20 Apr 2008 23:01:22 +0200, Jens-Olaf Lindermann wrote: >> doesn't look like any authentication actually happens. >> (and is out.alice-dsl.de really alice's smtp-relay for customers?) > smtp.alice-dsl.net is just an alias for out.alice-dsl.de is, which I have > found out running the 'host' command. ok. > But how can I get authentication > work? (I swear I write a tutorial for alice!) so you now have: out.alice-dsl.de:alice-user:alice-password in passwd.client and dc_smarthost='out.alice-dsl.de' in update-exim4.conf.conf and it's still not working? when you run update-exim4.conf it should expand the dc_smarthost variable from update-exim4.conf.conf; the resulting file is /var/lib/exim4/config.autogenerated; you can take look there (search for DCsmarthost). ah, another idea: again in update-exim4.conf.conf: dc_eximconfig_configtype='smarthost' (otherwise the mails are not sent via the configured smarthost, if I understand all these variables correctly) >> the second place (though you probably have that set?) is >> update-exim4.conf.conf, which needs a line like: >> dc_smarthost='smtp.alice.de' > This line is there and identical with passwd.client too. good. gregor -- .''`. http://info.comodo.priv.at/ | gpg key ID: 0x00F3CFE4 : :' : debian gnu/linux user, admin & developer - http://www.debian.org/ `. `' member of https://www.vibe.at/ | how to reply: http://got.to/quote/ `- NP: Carole King: It's Too Late |
| ||||
| gregor herrmann wrote: > On Sun, 20 Apr 2008 22:11:56 +0200, Jens-Olaf Lindermann wrote: > >>> Also check your /etc/aliases file to make sure it is correct because >>> Exim uses it. >>> >> must there stand something special for me 'user'? >> > > TTBOMK /etc/aliases is for _incoming_ mail, which doesn't seem to be > your problem. > /etc/email-addresses can be used to "translate" local usernames to > mailadresses for outgoing mail. > > > gregor > Well, you might be correct, but I have my aliases file set up to forward my (root's) mail to a mail box on my mail server, which runs on a PowerMac on the same LAN. That way I can retrieve it using a mail client (usually Thunderbird) remotely from a Ubuntu box. Here's what my aliases looks like on my INN NNTP (Debian Sarge) server box: # /etc/aliases mailer-daemon: postmaster postmaster: root nobody: root hostmaster: root usenet: root news: root webmaster: root www: root ftp: root abuse: root noc: root security: root root: john@myprivate.net /etc/aliases (END) As you can see, every mailbox is aliased to root, which then is aliased to an "Internet" type address (john@myprivate.net). From man aliases(5): The aliases(5) table provides a system-wide mechanism to redirect mail for local recipients. The redirections are processed by the Postfix local(8) delivery agent. From man local(8): The local(8) daemon processes delivery requests from the Postfix queue manager to deliver mail to local recipients. Each delivery request specifies a queue file, a sender address, a domain or host to deliver to, and one or more recipients. This program expects to be run from the master(8) process manager. That seems to agree with what my Exim4 server is doing with the aliases file -- specifying a sender address at a domain. If it was only for that computer, then a domain wouldn't be needed since the mail is local to that machine. Does this make sense? This is probably not Jens' problem at all, but the aliases file, at least in my case, had to be edited for my nightly news server to be mailed to the user "news" and then get it forwarded (through user root) to me at my SIMS mailbox. These computers are all on the same LAN, and there is a BIND9 DNS name server also on the LAN, which might make things easier for me in my setup. As a test, I can ssh into the news server computer, use mail, and send a message to an Internet address without any trouble. The aliases file was not used during the test though, but my Exim4 is processing Internet mail. I have done this test, using an Internet mailbox, and then a local (LAN) mailbox on the SIMS server. Here is an Internet message header (my domain is munged into "my.net" for security): From - Sun Apr 20 21:06:08 2008 X-Account-Key: account10 X-UIDL: 2114849 X-Mozilla-Status: 0001 X-Mozilla-Status2: 00000000 Return-Path: john@news7.my.net Received: from [192.168.1.24] (HELO postoffice.att.net) by my.net (Stalker SMTP Server 1.8b8) with ESMTP id S.0002114849 for <john@mail.my.net>; Sun, 20 Apr 2008 21:02:52 -0500 Received: from sccwmxc01.att.net ([204.121.202.84]) by att.net (mtiwmxc11) with ESMTP id <2008042101573201100pa4fpe>; Mon, 21 Apr 2008 01:57:32 +0000 Received: from my.net ([75.222.206.194]) by att.net (sccwmxc01) with SMTP id <20080421015731s01007k0rre>; Mon, 21 Apr 2008 01:57:31 +0000 X-Originating-IP: [75.222.206.194] Received: from [192.168.1.31] (HELO localhost) by my.net (Stalker SMTP Server 1.8b8) with ESMTP id S.0002114848 for <xanadu@att.net>; Sun, 20 Apr 2008 20:57:28 -0500 Received: from john by localhost with local (Exim 4.50) id 1JnlHc-0003XH-6z for xanadu@att.net; Sun, 20 Apr 2008 20:57:28 -0500 To: xanadu@att.net Subject: Test Message-Id: <E1JnlHc-0003XH-6z@localhost> From: "John F. Morse" <john@news7.my.net> Date: Sun, 20 Apr 2008 20:57:28 -0500 Here is an intranet (LAN only) message header: From - Sun Apr 20 21:02:04 2008 X-Account-Key: account1 X-UIDL: 2114847 X-Mozilla-Status: 0001 X-Mozilla-Status2: 00000000 Return-Path: john@news7.my.net Received: from [192.168.1.31] (HELO localhost) by my.net (Stalker SMTP Server 1.8b8) with ESMTP id S.0002114847 for <john@my.net>; Sun, 20 Apr 2008 20:56:58 -0500 Received: from john by localhost with local (Exim 4.50) id 1JnlH7-0003XD-7q for john@my.net; Sun, 20 Apr 2008 20:56:57 -0500 To: john@my.net Subject: test Message-Id: <E1JnlH7-0003XD-7q@localhost> From: "John F. Morse" <john@news7.my.net> Date: Sun, 20 Apr 2008 20:56:57 -0500 -- John No Microsoft, Apple, Intel, Trend Micro, nor Ford products were used in the preparation or transmission of this message. The EULA sounds like it was written by a team of lawyers who want to tell me what I can't do. The GPL sounds like it was written by a human being, who wants me to know what I can do. |