Re: root acount unable to mail gmail.com - vers. 4.3
Hi I found the issue. I had to add a route like Route -q add 127.0.0.1 -netmask 255.0.0.0 localhost => and after this, the box is able to send mails !!! Next issue if someone has an idea: Interface1 = dmz one with the mail server of the company Interface2 = Public IP, which is also the IP of my MX server => I can send mails locally, but not to my mail server. I'm using sendmail (I don't need more) I try to change the host IP via the /etc/hosts file (with the DMZ IP Address) but the system still try to reach the real IP, means to go out of the interface2; and this is not working. Regards > -Message d'origine- > De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > De la part de Christophe Rioux > Envoyi : vendredi 10 octobre 2008 17:15 > @ : misc@openbsd.org > Objet : Re: root acount unable to mail gmail.com - vers. 4.3 > > HI > > I have more or less the same issue. I try to send a > monitoring mail via > root, and if I do a tcpdump I see: > > pass out on em2: public_ip.17782 > 127.0.0.1.25: > > What means, the firewall try to send a mail to outside. > > I try the same thing with the command: > mail [EMAIL PROTECTED] > subject: toto > . > And I see exactly the same result. What is wrong ? > > Regards
Re: root acount unable to mail gmail.com - vers. 4.3
/var/spool/clientmqueue is not empty. There are all the mails waiting and there are spooled every 15 minutes. What I don't also understand is that the command "mailq" returns after 30-40 secondes the result: 0 Mail -v takes the same result. -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Jesus Sanchez Envoyi : vendredi 10 octobre 2008 19:47 @ : misc@openbsd.org Objet : Re: root acount unable to mail gmail.com - vers. 4.3 Christophe Rioux escribis: > HI > > I have more or less the same issue. I try to send a monitoring mail > via root, and if I do a tcpdump I see: > > pass out on em2: public_ip.17782 > 127.0.0.1.25: > pf activated? it may be a rule. Try looking your pf.conf > What means, the firewall try to send a mail to outside. > > I try the same thing with the command: > mail [EMAIL PROTECTED] > subject: toto > . > are /var/spool/mqueue or /var/spool/clientmqueue empty?? try using # mail -v [EMAIL PROTECTED] > And I see exactly the same result. What is wrong ? > > Regards
Re: root acount unable to mail gmail.com - vers. 4.3
Christophe Rioux escribis: HI I have more or less the same issue. I try to send a monitoring mail via root, and if I do a tcpdump I see: pass out on em2: public_ip.17782 > 127.0.0.1.25: pf activated? it may be a rule. Try looking your pf.conf What means, the firewall try to send a mail to outside. I try the same thing with the command: mail [EMAIL PROTECTED] subject: toto . are /var/spool/mqueue or /var/spool/clientmqueue empty?? try using # mail -v [EMAIL PROTECTED] And I see exactly the same result. What is wrong ? Regards
Re: root acount unable to mail gmail.com - vers. 4.3
HI I have more or less the same issue. I try to send a monitoring mail via root, and if I do a tcpdump I see: pass out on em2: public_ip.17782 > 127.0.0.1.25: What means, the firewall try to send a mail to outside. I try the same thing with the command: mail [EMAIL PROTECTED] subject: toto . And I see exactly the same result. What is wrong ? Regards
Re: root acount unable to mail gmail.com
On Fri, Oct 10, 2008 at 12:44:21AM +0200, Jesus Sanchez wrote: > Hi, using a clean install of OpenBSD 4.3, after doing some changes, the > /etc/rc.conf sendmail_flags uses /etc/mail/sendmail.cf as config file. > popa3d runs OK and network also, but I have a problem. When I send mail > as a regular user, mail goes to the account but if I login as root and > then send a mail to a wellknown gmail.com account (this acount, > [EMAIL PROTECTED], for example) mail never comes. This is a gmail.com > problem? > > didn't found anything about restrictions on root acount and sendmail. > I had trouble sending mails to big mail providers (gmail included). But this was a few years ago and it was due to the fact that my ISP didn't offer reverse DNS. You could test sending to a less popular mail provider (i.e. not so strict and spam infected), it worked for me at that time. -- Everything is simple, we're stupid. gopher://sdf.lonestar.org/1/users/bulibuta
Re: root acount unable to mail gmail.com
On 2008-10-10, Jesus Sanchez <[EMAIL PROTECTED]> wrote: >> - hostname zexel.es (it's not true I own that domain, but needed) it doesn't even exist, many mail hosts won't accept mail from there at all. i'm quite surprised gmail does...
Re: root acount unable to mail gmail.com
My god, it's on the spam folder... sorry for the noise, I looked everywhere but that. thanks for all. Jesus Sanchez escribis: lets see step by step. a very very dirty conf, but only to try things. - clean install - dhclient (network works well) - hostname zexel.es (it's not true I own that domain, but needed) - edit /etc/hosts adding a line "127.0.0.1 zexel.es" - mail to my self ([EMAIL PROTECTED]) to try, it works. - create a user zexel - log as zexel - mail [EMAIL PROTECTED] (this acount) and the mail arrives. - log again as root - mail [EMAIL PROTECTED] mail don't arrives. - /var/spool/mqueue is empty - this is the really dirty /var/log/maillog I got after some mails: /var/log/maillog =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Oct 9 19:16:46 vm sm-mta[20092]: starting daemon (8.14.1): [EMAIL PROTECTED]:30:00 Oct 9 19:18:04 vm sendmail[16332]: m9A1I2JO016332: from=root, size=17, class=0, nrcpts=2, msgid=<[EMAIL PROTECTED]>, [EMAIL PROTECTED] Oct 9 19:18:05 vm sm-mta[10711]: m9A1I4NR010711: from=<[EMAIL PROTECTED]>, size=272, class=0, nrcpts=2, msgid=<[EMAIL PROTECTED]>, proto=ESMTP, daemon=MTA, [EMAIL PROTECTED] [127.0.0.1] Oct 9 19:18:05 vm sendmail[16332]: m9A1I2JO016332: [EMAIL PROTECTED],asfdasdf, ctladdr=root (0/0), delay=00:00:03, xdelay=00:00:01, mailer=relay, pri=60017, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (m9A1I4NR010711 Message accepted for delivery) Oct 9 19:18:05 vm sm-mta[3292]: m9A1I4NR010711: SYSERR(root): zexel.es. config error: mail loops back to me (MX problem?) Oct 9 19:18:05 vm sm-mta[13079]: m9A1I5sS013079: [EMAIL PROTECTED] [127.0.0.1] did not issue MAIL/EXPN/VRFY/ETRN during connection to MTA Oct 9 19:18:05 vm sm-mta[3292]: m9A1I4NR010711: to=<[EMAIL PROTECTED]>,<[EMAIL PROTECTED]>, delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=60272, relay=zexel.es. [127.0.0.1], dsn=5.3.5, stat=Local configuration error Oct 9 19:18:05 vm sm-mta[3292]: m9A1I4NR010711: m9A1I5NR003292: DSN: Local configuration error Oct 9 19:18:06 vm sm-mta[3292]: m9A1I5NR003292: to=root, delay=00:00:01, xdelay=00:00:01, mailer=local, pri=61296, dsn=2.0.0, stat=Sent Oct 9 19:18:06 vm sm-mta[3292]: m9A1I5NR003292: to=<[EMAIL PROTECTED]>, delay=00:00:01, xdelay=00:00:00, mailer=esmtp, pri=61296, relay=zexel.es., dsn=5.3.5, stat=Local configuration error Oct 9 19:18:06 vm sm-mta[3292]: m9A1I5NR003292: m9A1I5NS003292: return to sender: Local configuration error Oct 9 19:18:06 vm sm-mta[3292]: m9A1I5NS003292: to=root, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=32320, dsn=2.0.0, stat=Sent Oct 9 19:19:10 vm sendmail[5978]: m9A1JAU2005978: from=root, size=62, class=0, nrcpts=1, msgid=<[EMAIL PROTECTED]>, [EMAIL PROTECTED] Oct 9 19:19:10 vm sm-mta[24475]: m9A1JA5p024475: from=<[EMAIL PROTECTED]>, size=338, class=0, nrcpts=1, msgid=<[EMAIL PROTECTED]>, proto=ESMTP, daemon=MTA, [EMAIL PROTECTED] [127.0.0.1] Oct 9 19:19:10 vm sendmail[5978]: m9A1JAU2005978: [EMAIL PROTECTED], ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30062, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (m9A1JA5p024475 Message accepted for delivery) Oct 9 19:19:12 vm sm-mta[25711]: m9A1JA5p024475: to=<[EMAIL PROTECTED]>, delay=00:00:02, xdelay=00:00:02, mailer=esmtp, pri=30338, relay=gmail-smtp-in.l.google.com. [216.239.59.27], dsn=2.0.0, stat=Sent (Ok: queued as 1D8AB4B26D3) Oct 9 19:20:26 vm sendmail[11607]: m9A1KQGd011607: from=root, size=47, class=0, nrcpts=1, msgid=<[EMAIL PROTECTED]>, [EMAIL PROTECTED] Oct 9 19:20:26 vm sm-mta[1777]: m9A1KQos001777: from=<[EMAIL PROTECTED]>, size=323, class=0, nrcpts=1, msgid=<[EMAIL PROTECTED]>, proto=ESMTP, daemon=MTA, [EMAIL PROTECTED] [127.0.0.1] Oct 9 19:20:26 vm sendmail[11607]: m9A1KQGd011607: [EMAIL PROTECTED], ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30047, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (m9A1KQos001777 Message accepted for delivery) Oct 9 19:20:28 vm sm-mta[30452]: m9A1KQos001777: to=<[EMAIL PROTECTED]>, delay=00:00:02, xdelay=00:00:02, mailer=esmtp, pri=30323, relay=gmail-smtp-in.l.google.com. [216.239.59.27], dsn=2.0.0, stat=Sent (Ok: queued as 1D9D30238F6) Oct 9 19:21:53 vm sendmail[13249]: gethostbyaddr(192.168.18.128) failed: 1 Oct 9 19:21:53 vm sendmail[29922]: starting daemon (8.14.1): SMTP Oct 9 19:22:09 vm sendmail[29027]: m9A1M91c029027: from=root, size=47, class=0, nrcpts=1, msgid=<[EMAIL PROTECTED]>, [EMAIL PROTECTED] Oct 9 19:22:09 vm sendmail[622]: m9A1M9bN000622: from=<[EMAIL PROTECTED]>, size=323, class=0, nrcpts=1, msgid=<[EMAIL PROTECTED]>, proto=ESMTP, daemon=MTA, [EMAIL PROTECTED] [127.0.0.1] Oct 9 19:22:09 vm sendmail[29027]: m9A1M91c029027: [EMAIL PROTECTED], ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30047, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (m9A1M9bN000622 Message accepted for delivery) Oct 9 19:22:11 vm sendmail[32256]: m9A1M9bN000622: to=<
Re: root acount unable to mail gmail.com
lets see step by step. a very very dirty conf, but only to try things. - clean install - dhclient (network works well) - hostname zexel.es (it's not true I own that domain, but needed) - edit /etc/hosts adding a line "127.0.0.1 zexel.es" - mail to my self ([EMAIL PROTECTED]) to try, it works. - create a user zexel - log as zexel - mail [EMAIL PROTECTED] (this acount) and the mail arrives. - log again as root - mail [EMAIL PROTECTED] mail don't arrives. - /var/spool/mqueue is empty - this is the really dirty /var/log/maillog I got after some mails: /var/log/maillog =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Oct 9 19:16:46 vm sm-mta[20092]: starting daemon (8.14.1): [EMAIL PROTECTED]:30:00 Oct 9 19:18:04 vm sendmail[16332]: m9A1I2JO016332: from=root, size=17, class=0, nrcpts=2, msgid=<[EMAIL PROTECTED]>, [EMAIL PROTECTED] Oct 9 19:18:05 vm sm-mta[10711]: m9A1I4NR010711: from=<[EMAIL PROTECTED]>, size=272, class=0, nrcpts=2, msgid=<[EMAIL PROTECTED]>, proto=ESMTP, daemon=MTA, [EMAIL PROTECTED] [127.0.0.1] Oct 9 19:18:05 vm sendmail[16332]: m9A1I2JO016332: [EMAIL PROTECTED],asfdasdf, ctladdr=root (0/0), delay=00:00:03, xdelay=00:00:01, mailer=relay, pri=60017, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (m9A1I4NR010711 Message accepted for delivery) Oct 9 19:18:05 vm sm-mta[3292]: m9A1I4NR010711: SYSERR(root): zexel.es. config error: mail loops back to me (MX problem?) Oct 9 19:18:05 vm sm-mta[13079]: m9A1I5sS013079: [EMAIL PROTECTED] [127.0.0.1] did not issue MAIL/EXPN/VRFY/ETRN during connection to MTA Oct 9 19:18:05 vm sm-mta[3292]: m9A1I4NR010711: to=<[EMAIL PROTECTED]>,<[EMAIL PROTECTED]>, delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=60272, relay=zexel.es. [127.0.0.1], dsn=5.3.5, stat=Local configuration error Oct 9 19:18:05 vm sm-mta[3292]: m9A1I4NR010711: m9A1I5NR003292: DSN: Local configuration error Oct 9 19:18:06 vm sm-mta[3292]: m9A1I5NR003292: to=root, delay=00:00:01, xdelay=00:00:01, mailer=local, pri=61296, dsn=2.0.0, stat=Sent Oct 9 19:18:06 vm sm-mta[3292]: m9A1I5NR003292: to=<[EMAIL PROTECTED]>, delay=00:00:01, xdelay=00:00:00, mailer=esmtp, pri=61296, relay=zexel.es., dsn=5.3.5, stat=Local configuration error Oct 9 19:18:06 vm sm-mta[3292]: m9A1I5NR003292: m9A1I5NS003292: return to sender: Local configuration error Oct 9 19:18:06 vm sm-mta[3292]: m9A1I5NS003292: to=root, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=32320, dsn=2.0.0, stat=Sent Oct 9 19:19:10 vm sendmail[5978]: m9A1JAU2005978: from=root, size=62, class=0, nrcpts=1, msgid=<[EMAIL PROTECTED]>, [EMAIL PROTECTED] Oct 9 19:19:10 vm sm-mta[24475]: m9A1JA5p024475: from=<[EMAIL PROTECTED]>, size=338, class=0, nrcpts=1, msgid=<[EMAIL PROTECTED]>, proto=ESMTP, daemon=MTA, [EMAIL PROTECTED] [127.0.0.1] Oct 9 19:19:10 vm sendmail[5978]: m9A1JAU2005978: [EMAIL PROTECTED], ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30062, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (m9A1JA5p024475 Message accepted for delivery) Oct 9 19:19:12 vm sm-mta[25711]: m9A1JA5p024475: to=<[EMAIL PROTECTED]>, delay=00:00:02, xdelay=00:00:02, mailer=esmtp, pri=30338, relay=gmail-smtp-in.l.google.com. [216.239.59.27], dsn=2.0.0, stat=Sent (Ok: queued as 1D8AB4B26D3) Oct 9 19:20:26 vm sendmail[11607]: m9A1KQGd011607: from=root, size=47, class=0, nrcpts=1, msgid=<[EMAIL PROTECTED]>, [EMAIL PROTECTED] Oct 9 19:20:26 vm sm-mta[1777]: m9A1KQos001777: from=<[EMAIL PROTECTED]>, size=323, class=0, nrcpts=1, msgid=<[EMAIL PROTECTED]>, proto=ESMTP, daemon=MTA, [EMAIL PROTECTED] [127.0.0.1] Oct 9 19:20:26 vm sendmail[11607]: m9A1KQGd011607: [EMAIL PROTECTED], ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30047, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (m9A1KQos001777 Message accepted for delivery) Oct 9 19:20:28 vm sm-mta[30452]: m9A1KQos001777: to=<[EMAIL PROTECTED]>, delay=00:00:02, xdelay=00:00:02, mailer=esmtp, pri=30323, relay=gmail-smtp-in.l.google.com. [216.239.59.27], dsn=2.0.0, stat=Sent (Ok: queued as 1D9D30238F6) Oct 9 19:21:53 vm sendmail[13249]: gethostbyaddr(192.168.18.128) failed: 1 Oct 9 19:21:53 vm sendmail[29922]: starting daemon (8.14.1): SMTP Oct 9 19:22:09 vm sendmail[29027]: m9A1M91c029027: from=root, size=47, class=0, nrcpts=1, msgid=<[EMAIL PROTECTED]>, [EMAIL PROTECTED] Oct 9 19:22:09 vm sendmail[622]: m9A1M9bN000622: from=<[EMAIL PROTECTED]>, size=323, class=0, nrcpts=1, msgid=<[EMAIL PROTECTED]>, proto=ESMTP, daemon=MTA, [EMAIL PROTECTED] [127.0.0.1] Oct 9 19:22:09 vm sendmail[29027]: m9A1M91c029027: [EMAIL PROTECTED], ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30047, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (m9A1M9bN000622 Message accepted for delivery) Oct 9 19:22:11 vm sendmail[32256]: m9A1M9bN000622: to=<[EMAIL PROTECTED]>, ctladdr=<[EMAIL PROTECTED]> (0/0), delay=00:00:02, xdelay=00:00:02, mailer=esmtp, pri=30323, relay=gmail-smtp-in.l
Re: root acount unable to mail gmail.com
i can send mail from root to my gmail. check your mail logs and mail queue. On Thu, Oct 9, 2008 at 3:44 PM, Jesus Sanchez <[EMAIL PROTECTED]> wrote: > Hi, using a clean install of OpenBSD 4.3, after doing some changes, the > /etc/rc.conf sendmail_flags uses /etc/mail/sendmail.cf as config file. > popa3d runs OK and network also, but I have a problem. When I send mail > as a regular user, mail goes to the account but if I login as root and > then send a mail to a wellknown gmail.com account (this acount, > [EMAIL PROTECTED], for example) mail never comes. This is a gmail.com > problem? > > didn't found anything about restrictions on root acount and sendmail. > > Thanks for all. > -Jesus. > > -- GDB has a 'break' feature; why doesn't it have 'fix' too?
Re: root acount unable to mail gmail.com
On Thu, Oct 9, 2008 at 6:44 PM, Jesus Sanchez <[EMAIL PROTECTED]> wrote: > Hi, using a clean install of OpenBSD 4.3, after doing some changes, the > /etc/rc.conf sendmail_flags uses /etc/mail/sendmail.cf as config file. > popa3d runs OK and network also, but I have a problem. When I send mail > as a regular user, mail goes to the account but if I login as root and > then send a mail to a wellknown gmail.com account (this acount, > [EMAIL PROTECTED], for example) mail never comes. This is a gmail.com > problem? does mail sent as root arrive anywhere else? is there anything in the logs? is it in the spam folder?
Re: root acount unable to mail gmail.com
On Thu, Oct 9, 2008 at 6:44 PM, Jesus Sanchez <[EMAIL PROTECTED]> wrote: > Hi, using a clean install of OpenBSD 4.3, after doing some changes, the > /etc/rc.conf sendmail_flags uses /etc/mail/sendmail.cf as config file. > popa3d runs OK and network also, but I have a problem. When I send mail > as a regular user, mail goes to the account but if I login as root and > then send a mail to a wellknown gmail.com account (this acount, > [EMAIL PROTECTED], for example) mail never comes. This is a gmail.com > problem? > > didn't found anything about restrictions on root acount and sendmail. > How are you sending the mail (show us your commands)? If you are running as a a regular user and try sending mail does it show up in the gmail account? I know that I can send mail to gmail accounts just with the default install. It's possible gmail or an intermediary ISP is blacklisting your IP block for some reason. -Nick
root acount unable to mail gmail.com
Hi, using a clean install of OpenBSD 4.3, after doing some changes, the /etc/rc.conf sendmail_flags uses /etc/mail/sendmail.cf as config file. popa3d runs OK and network also, but I have a problem. When I send mail as a regular user, mail goes to the account but if I login as root and then send a mail to a wellknown gmail.com account (this acount, [EMAIL PROTECTED], for example) mail never comes. This is a gmail.com problem? didn't found anything about restrictions on root acount and sendmail. Thanks for all. -Jesus.