FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 01-18-2009, 02:00 AM
"s. keeling"
 
Default Sidux. SMTP wizards, help a Postfix noob?

Hi. I'd rather it ran from inetd. These are single user systems,
intended to be fed via pop3/fetchmail/procmail/mutt, flowing back via
my ISP's smarthost. I've fought with Sendmail successfully in the
past, limped along with exim* for years, and now Postfix. What're my
most obvious blunders? Exim allowed me to supply my ISP password in
passwd.client. How's that done in Postfix? Suggest config/log files
I can show you? My systems are all behind a router on 192.*, and my
ISP (not me) is nucleus.com (shouldn't matter).

Thanks.

--------------------------------------------------------
(127) newmil [root] /var/log_ apt-cache policy postfix
postfix:
Installed: 2.5.5-1.1
Candidate: 2.5.5-1.1
Version table:
*** 2.5.5-1.1 0
500 http://ftp.us.debian.org sid/main Packages
500 http://ftp.de.debian.org unstable/main Packages
100 /var/lib/dpkg/status


Jan 16 01:13:56 newmil postfix/master[2782]: daemon started -- version 2.5.5, configuration /etc/postfix
Jan 16 01:13:57 newmil postfix/master[2782]: reload configuration /etc/postfix
Jan 16 18:23:20 newmil postfix/pickup[21212]: E2196BBF7: uid=1000 from=<keeling>
Jan 16 18:23:20 newmil postfix/cleanup[21707]: E2196BBF7: message-id=<20090117012320.GA21695@newmil.nucleus.com>
Jan 16 18:23:20 newmil postfix/qmgr[2845]: E2196BBF7: from=<keeling@newmil.nucleus.com>, size=2517, nrcpt=1 (queue active)
Jan 16 18:23:21 newmil postfix/smtp[21710]: E2196BBF7: to=<keeling@nucleus.com>, relay=smtp.nucleus.com[66.18.251.14]:25, delay=0.4, delays=0.06/0.02/0.29/0.02, dsn=5.1.8, status=bounced (host smtp.nucleus.com[66.18.251.14] said: 550 5.1.8 <keeling@newmil.nucleus.com> Invalid address (in reply to MAIL FROM command))
Jan 16 18:23:21 newmil postfix/cleanup[21707]: 4E2AABBFA: message-id=<20090117012321.4E2AABBFA@newmil.nucleus.com>
Jan 16 18:23:21 newmil postfix/qmgr[2845]: 4E2AABBFA: from=<>, size=4409, nrcpt=1 (queue active)
Jan 16 18:23:21 newmil postfix/bounce[21711]: E2196BBF7: sender non-delivery notification: 4E2AABBFA
Jan 16 18:23:21 newmil postfix/qmgr[2845]: E2196BBF7: removed
Jan 16 18:23:22 newmil postfix/local[21712]: 4E2AABBFA: to=<keeling@newmil.nucleus.com>, relay=local, delay=1.2, delays=0.01/0.11/0/1, dsn=2.0.0, status=sent (delivered to command: /usr/bin/procmail)
Jan 16 18:23:22 newmil postfix/qmgr[2845]: 4E2AABBFA: removed
Jan 16 22:48:31 newmil postfix/master[2782]: terminating on signal 15
Jan 16 22:49:18 newmil postfix/postfix-script[2655]: fatal: the Postfix mail system is not running
Jan 16 22:49:21 newmil postfix/master[2890]: daemon started -- version 2.5.5, configuration /etc/postfix
--------------------------------------------------------


--
Any technology distinguishable from magic is insufficiently advanced.
(*) http://blinkynet.net/comp/uip5.html Linux Counter #80292
- - http://www.faqs.org/rfcs/rfc1855.html Please, don't Cc: me.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 01-18-2009, 10:48 AM
mouss
 
Default Sidux. SMTP wizards, help a Postfix noob?

s. keeling a écrit :
> Hi. I'd rather it ran from inetd.

don't. if you don't have a lot of mail, reduce the number of processes
in postfix master.cf.

> These are single user systems,
> intended to be fed via pop3/fetchmail/procmail/mutt, flowing back via
> my ISP's smarthost. I've fought with Sendmail successfully in the
> past, limped along with exim* for years, and now Postfix. What're my
> most obvious blunders? Exim allowed me to supply my ISP password in
> passwd.client. How's that done in Postfix? Suggest config/log files
> I can show you? My systems are all behind a router on 192.*, and my
> ISP (not me) is nucleus.com (shouldn't matter).
>
> Thanks.
>
> --------------------------------------------------------
> (127) newmil [root] /var/log_ apt-cache policy postfix
> postfix:
> Installed: 2.5.5-1.1
> Candidate: 2.5.5-1.1
> Version table:
> *** 2.5.5-1.1 0
> 500 http://ftp.us.debian.org sid/main Packages
> 500 http://ftp.de.debian.org unstable/main Packages
> 100 /var/lib/dpkg/status
>
>
> Jan 16 01:13:56 newmil postfix/master[2782]: daemon started -- version 2.5.5, configuration /etc/postfix
> Jan 16 01:13:57 newmil postfix/master[2782]: reload configuration /etc/postfix
> Jan 16 18:23:20 newmil postfix/pickup[21212]: E2196BBF7: uid=1000 from=<keeling>
> Jan 16 18:23:20 newmil postfix/cleanup[21707]: E2196BBF7: message-id=<20090117012320.GA21695@newmil.nucleus.com>
> Jan 16 18:23:20 newmil postfix/qmgr[2845]: E2196BBF7: from=<keeling@newmil.nucleus.com>, size=2517, nrcpt=1 (queue active)
> Jan 16 18:23:21 newmil postfix/smtp[21710]: E2196BBF7: to=<keeling@nucleus.com>, relay=smtp.nucleus.com[66.18.251.14]:25, delay=0.4, delays=0.06/0.02/0.29/0.02, dsn=5.1.8, status=bounced (host smtp.nucleus.com[66.18.251.14] said: 550 5.1.8 <keeling@newmil.nucleus.com> Invalid address (in reply to MAIL FROM command))

newmil.nucleus.com doesn't exist in DNS, so your ISP refuses it.

you can use smtp_generic_maps so that your "fantasy" domain is rewritten
when mail is forwarded via smtp:

smtp_generic_maps = hash:/etc/postfix/generic

== generic:
keeling@newmil.nucleus.com keeling@nucleus.com

see
http://www.postfix.org/SOHO_README.html


> Jan 16 18:23:21 newmil postfix/cleanup[21707]: 4E2AABBFA: message-id=<20090117012321.4E2AABBFA@newmil.nucleus.com>
> Jan 16 18:23:21 newmil postfix/qmgr[2845]: 4E2AABBFA: from=<>, size=4409, nrcpt=1 (queue active)
> Jan 16 18:23:21 newmil postfix/bounce[21711]: E2196BBF7: sender non-delivery notification: 4E2AABBFA
> Jan 16 18:23:21 newmil postfix/qmgr[2845]: E2196BBF7: removed
> Jan 16 18:23:22 newmil postfix/local[21712]: 4E2AABBFA: to=<keeling@newmil.nucleus.com>, relay=local, delay=1.2, delays=0.01/0.11/0/1, dsn=2.0.0, status=sent (delivered to command: /usr/bin/procmail)
> Jan 16 18:23:22 newmil postfix/qmgr[2845]: 4E2AABBFA: removed
> Jan 16 22:48:31 newmil postfix/master[2782]: terminating on signal 15
> Jan 16 22:49:18 newmil postfix/postfix-script[2655]: fatal: the Postfix mail system is not running
> Jan 16 22:49:21 newmil postfix/master[2890]: daemon started -- version 2.5.5, configuration /etc/postfix
> --------------------------------------------------------
>
>


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 01-19-2009, 09:38 PM
"s. keeling"
 
Default Sidux. SMTP wizards, help a Postfix noob?

mouss <mouss@ml.netoyen.net>:
> s. keeling a écrit :
> > Hi. I'd rather it ran from inetd.
>
> don't. if you don't have a lot of mail, reduce the number of processes
> in postfix master.cf.

Okay.

> > Jan 16 18:23:21 newmil postfix/smtp[21710]: E2196BBF7: to=<keeling@nucleus.com>, relay=smtp.nucleus.com[66.18.251.14]:25, delay=0.4, delays=0.06/0.02/0.29/0.02, dsn=5.1.8, status=bounced (host smtp.nucleus.com[66.18.251.14] said: 550 5.1.8 <keeling@newmil.nucleus.com> Invalid address (in reply to MAIL FROM command))
>
> newmil.nucleus.com doesn't exist in DNS, so your ISP refuses it.
>
> you can use smtp_generic_maps so that your "fantasy" domain is rewritten
> when mail is forwarded via smtp:
>
> smtp_generic_maps = hash:/etc/postfix/generic
>
> == generic:
> keeling@newmil.nucleus.com keeling@nucleus.com

Great, thanks, and for this:

> http://www.postfix.org/SOHO_README.html

I wish I'd gone looking for that years ago.


--
Any technology distinguishable from magic is insufficiently advanced.
(*) http://blinkynet.net/comp/uip5.html Linux Counter #80292
- - http://www.faqs.org/rfcs/rfc1855.html Please, don't Cc: me.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 01-20-2009, 12:42 AM
"s. keeling"
 
Default Sidux. SMTP wizards, help a Postfix noob?

s. keeling <keeling@nucleus.com>:
> mouss <mouss@ml.netoyen.net>:
> >
> > smtp_generic_maps = hash:/etc/postfix/generic
> >
> > == generic:
> > keeling@newmil.nucleus.com keeling@nucleus.com

More clues? Again, this is Sidux on AMD64, HP Pavilion dv4.

Jan 19 18:33:35 newmil postfix/qmgr[12263]: 4EDADBC06: from=<keeling@newmil.nucleus.com>, size=671, nrcpt=1 (queue active)
Jan 19 18:33:35 newmil postfix/smtp[14928]: warning: SASL authentication failure: No worthy mechs found
Jan 19 18:33:35 newmil postfix/smtp[14928]: 4EDADBC06: to=<keeling@nucleus.com>, relay=smtp.nucleus.com[66.18.251.14]:25, delay=0.1, delays=0.02/0/0.08/0, dsn=4.7.0, status=deferred (SASL authentication failed; cannot authenticate to server smtp.nucleus.com[66.18.251.14]: no mechanism available)

What have I missed? I'm pretty musch ignorant of cyrus, dovecot,
sasl, postfix (just in case it's not blindingly obvious), but I'm
reading as fast as I can.

(0) newmil /home/keeling_ postconf -a
cyrus
dovecot
(0) newmil /home/keeling_ postconf -m
btree
cidr
environ
hash
nis
proxy
regexp
sdbm
static
tcp
unix

Thanks.


--
Any technology distinguishable from magic is insufficiently advanced.
(*) http://blinkynet.net/comp/uip5.html Linux Counter #80292
- - http://www.faqs.org/rfcs/rfc1855.html Please, don't Cc: me.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 01-20-2009, 08:18 PM
mouss
 
Default Sidux. SMTP wizards, help a Postfix noob?

s. keeling a écrit :
> s. keeling <keeling@nucleus.com>:
>> mouss <mouss@ml.netoyen.net>:
>>> smtp_generic_maps = hash:/etc/postfix/generic
>>>
>>> == generic:
>>> keeling@newmil.nucleus.com keeling@nucleus.com
>
> More clues? Again, this is Sidux on AMD64, HP Pavilion dv4.
>
> Jan 19 18:33:35 newmil postfix/qmgr[12263]: 4EDADBC06: from=<keeling@newmil.nucleus.com>, size=671, nrcpt=1 (queue active)
> Jan 19 18:33:35 newmil postfix/smtp[14928]: warning: SASL authentication failure: No worthy mechs found
> Jan 19 18:33:35 newmil postfix/smtp[14928]: 4EDADBC06: to=<keeling@nucleus.com>, relay=smtp.nucleus.com[66.18.251.14]:25, delay=0.1, delays=0.02/0/0.08/0, dsn=4.7.0, status=deferred (SASL authentication failed; cannot authenticate to server smtp.nucleus.com[66.18.251.14]: no mechanism available)
>

$ telnet smtp.nucleus.com 25
220 smtp.nucleus.com modusMail ESMTP Receiver
EHLO imlil.netoyen.net
250-nucleus.com
250-SIZE 20971520
250-ETRN
250-STARTTLS
250-ENHANCEDSTATUSCODES
250-X-IMS 5 -1
250-DSN
250-VRFY
250-AUTH LOGIN SCRAM-MD5 CRAM-MD5
250-AUTH=LOGIN
250 8BITMIME
quit
221 2.0.0 nucleus.com closing

so smtp.nucleus.com accepted LOGIN, CRAM-MD5 and SCRAM-MD5 (sigh, they
support the non standard "LOGIN" but not the standard "PLAIN"...)

Most probably, your postfix has the default:
smtp_sasl_security_options = noplaintext, noanonymous

which implies that postfix won't use cleartext passwords, thus no LOGIN
(nor PLAIN).

fortunately, "they" seem to accept STARTTLS. so enable TLS in the smtp
client:

smtp_tls_security_level = may

and try again. (plain text is ok under TLS).

if you can't get TLS to work, try

smtp_sasl_security_options = noanonymous

but this is not a very good idea, because your password will be sent in
the clear. (note that you need to have the cyrus-sasl
/usr/lib/sasl2/liblogin.* lib files).


PS. The postfix-users list is a better place for such questions.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 

Thread Tools




All times are GMT. The time now is 06:58 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org