postfix-fetchmail-procmail-mutt,receives,but don't send
Hi all I have been trying to get mutt to send mail, but the mail keeps ending up in /var/spool/postfix/defer and says that host not found , this is with any hostname I try to send to. Am I missing something in postfix - procmail - fetchmail -or mutt configs that is needed for sending mails through the postfix system, mail delivery agent ? thanks for some help on this john w mislan -- God does not play dice" -- Einstein "Not only does God play dice, he sometimes throws them where they can't be seen." -- Stephen Hawking
* basslake
Hi all I have been trying to get mutt to send mail, but the mail keeps ending up in /var/spool/postfix/defer and says that host not found , this is with any hostname I try to send to.
Am I missing something in postfix - procmail - fetchmail -or mutt configs that is needed for sending mails through the postfix system, mail delivery agent ?
Well think I can help you pinpoint a little bit.... postfix. You probably need something like a SMART_HOST pointing to your ISP's mailserver. I have however no experience setting this up with postfix; a search about this on google should clear things up, or maybe, maybe somebody here... Joost
Try using nslookup to check those hosts, Postfix uses DNS heavily. As
Joost says,
try relay_host=your.ISP.SMTP.server
Also post some of the Postfix log with the error messages.
Jeffrey
Quoting Joost van der Lugt
* basslake
[Jun 14. 2001 17:33]: Hi all I have been trying to get mutt to send mail, but the mail keeps ending up in /var/spool/postfix/defer and says that host not found , this is with any hostname I try to send to.
Am I missing something in postfix - procmail - fetchmail -or mutt configs that is needed for sending mails through the postfix system, mail delivery agent ?
Well think I can help you pinpoint a little bit.... postfix.
You probably need something like a SMART_HOST pointing to your ISP's mailserver. I have however no experience setting this up with postfix; a search about this on google should clear things up, or maybe, maybe somebody here...
Joost
-- I don't do Windows and I don't come to work before nine. -- Johnny Paycheck
Thanks for the help I got in trouble with my isp last week I set /etc/postfix/main.cf - relayhost=my-isp-smtp and they got sent all my cron-jobs, and security check mails . I get ONE more CHANCE to test anything , and it has to be right , or I'm booted. They get really pissed when sendmail or postfix appends root, or usr at the front of my login-name. I can receive mails , ok but I need to be real careful about smart-host or any other option - the headers get screwed up . and I get a threatening mail from them . I can supply some more info on this in a later post - kmail works fine to send or receive and filter - thats how I'm posting now. I 'm not sure if kmail depends on postfix - if it does , then why doesn't mutt work through postfix? Maybe there's some answers to this? thanks for any help John W Mislan On Fri, 15 Jun 2001, you wrote:
Try using nslookup to check those hosts, Postfix uses DNS heavily. As Joost says,
try relay_host=your.ISP.SMTP.server
Also post some of the Postfix log with the error messages.
Jeffrey
Quoting Joost van der Lugt
: * basslake
[Jun 14. 2001 17:33]: Hi all I have been trying to get mutt to send mail, but the mail keeps ending up in /var/spool/postfix/defer and says that host not found , this is with any hostname I try to send to.
Am I missing something in postfix - procmail - fetchmail -or mutt configs that is needed for sending mails through the postfix system, mail delivery agent ?
Well think I can help you pinpoint a little bit.... postfix.
You probably need something like a SMART_HOST pointing to your ISP's mailserver. I have however no experience setting this up with postfix; a search about this on google should clear things up, or maybe, maybe somebody here...
Joost
-- I don't do Windows and I don't come to work before nine. -- Johnny Paycheck
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq and the archives at http://lists.suse.com
Hi, On Fri, Jun 15 2001 at 00:15 -0400, basslake wrote:
I got in trouble with my isp last week I set /etc/postfix/main.cf - relayhost=my-isp-smtp and they got sent all my cron-jobs, and security check mails . I get ONE more CHANCE to test anything , and it has to be right , or I'm booted.
My guess is that your mydestination parameter in /etc/postfix/main.cf isn't configured properly so postfix doesn't know which mails to deliver locally and which to send to your ISP. While you're still configuring/testing postfix it might be a good idea to set defer_transports = smtp in /etc/postfix/main.cf to make postfix queue outgoing mail and send it only when beeing asked to (`sendmail -q'). That way you can check what's going to be sent (`mailq') before actually sending it. Ciao, Stefan -- Stefan Troeger o _ _ _ stefan@troeger.st __o __o /\_ _ \\o (_)\__/o (_) _`\<, _`\<, _>(_) (_)/<_ \_| \ _|/' \/ (_)/(_) (_)/(_) (_) (_) (_) (_)' _\o_
Please post the results of "postconf -n" and the four or so lines in
/var/log/maillog for one outgoing post.
Jeffrey
Quoting basslake
Thanks for the help
I got in trouble with my isp last week I set /etc/postfix/main.cf - relayhost=my-isp-smtp and they got sent all my cron-jobs, and security check mails . I get ONE more CHANCE to test anything , and it has to be right , or I'm booted. They get really pissed when sendmail or postfix appends root, or usr at the front of my login-name. I can receive mails , ok but I need to be real careful about smart-host or any other option - the headers get screwed up . and I get a threatening mail from them . I can supply some more info on this in a later post - kmail works fine to send or receive and filter - thats how I'm posting now. I 'm not sure if kmail depends on postfix - if it does , then why doesn't mutt work through postfix? Maybe there's some answers to this?
thanks for any help John W Mislan
On Fri, 15 Jun 2001, you wrote:
Try using nslookup to check those hosts, Postfix uses DNS heavily. As Joost says,
try relay_host=your.ISP.SMTP.server
Also post some of the Postfix log with the error messages.
Jeffrey
Quoting Joost van der Lugt
: * basslake
[Jun 14. 2001 17:33]: Hi all I have been trying to get mutt to send mail, but the mail keeps ending up in /var/spool/postfix/defer and says that host not found , this is with any hostname I try to send to.
Am I missing something in postfix - procmail - fetchmail -or mutt configs that is needed for sending mails through the postfix system, mail delivery agent ?
Well think I can help you pinpoint a little bit.... postfix.
You probably need something like a SMART_HOST pointing to your ISP's mailserver. I have however no experience setting this up with postfix; a search about this on google should clear things up, or maybe, maybe somebody here...
Joost
-- I don't do Windows and I don't come to work before nine. -- Johnny Paycheck
On Fri, 15 Jun 2001, Jeffrey Taylor wrote:
Please post the results of "postconf -n" and the four or so lines in /var/log/maillog for one outgoing post.
Jeffrey
OK Jeffrey
Here is postconf -n ***************** I'll put /var/log/mail lines last ************
[01:46pm][Fri Jun 15][basslake:/root]# postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
canonical_maps = hash:/etc/postfix/canonical
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
debug_peer_level = 2
default_destination_concurrency_limit = 10
default_privs = nobody
default_transport = smtp
disable_dns_lookups = yes
header_checks = regexp:/etc/postfix/header_checks
home_mailbox = /root/Mail/Incoming
local_destination_concurrency_limit = 2
mail_name = Postfix on SuSE Linux 7.0 (i386)
mail_owner = postfix
mail_spool_directory = /var/mail
masquerade_domains = root@basslake root.basslake.127.0.0.2 root@basslake.localh
st usr@basslake usr@basslake.127.0.0.2 usr@basslake.localhost johnwm@basslake j
hnwm@basslake.127.0.0.2 johnwm@basslake.localhost
masquerade_exceptions = root
mydestination = $myhostname, localhost.$mydomain, basslake@xtalwind.net, localh
st, johnwm
mydomain = localhost
myhostname = basslake
program_directory = /usr/lib/postfix
queue_directory = /var/spool/postfix
relocated_maps = hash:/etc/postfix/relocated
smtpd_banner = $myhostname ESMTP $mail_name
smtpd_sender_restrictions = hash:/etc/postfix/access
transport_maps = hash:/etc/postfix/transport
virtual_maps = hash:/etc/postfix/virtual
[02:04pm][Fri Jun 15][basslake:/root]#
********************************************************** /var/log/mail ************
Jun 15 13:40:11 basslake postfix/smtp[1672]: 4065A41F85: to=
Quoting basslake
masquerade_domains = root@basslake root.basslake.127.0.0.2 root@basslake.localh st usr@basslake usr@basslake.127.0.0.2 usr@basslake.localhost johnwm@basslake j hnwm@basslake.127.0.0.2 johnwm@basslake.localhost
You are confusing domains, hosts, and users, here and elsewhere. This must be domains and hosts, i.e, get rid of the usernames. E.g.: masquerade_domains = basslake root.basslake.127.0.0.2 basslake.localhost basslake basslake.127.0.0.2 basslake.localhost basslake j basslake.127.0.0.2 basslake.localhost I suspect this can be simplified. One step at at time. Note: localhost is a host name, the usual practice is localdomain for the domain name. localhost is a reserved name. I am not sure if localdomain is just common practice or it actually has a real meaning.
masquerade_exceptions = root
Based on what you did with masquerade_domains, should probably be: masquerade_exceptions = root usr I suggest: mydestination = $myhostname, localhost.$mydomain, xtalwind.net, localhost mydomain = basslake myhostname = basslake I am assuming xtalwind.net is your ISP, basslake is your username at that ISP, basslake is also the name of your computer, and it is the only computer (i.e., no home LAN). Try this and let us know what happens. Jeffrey -- I don't do Windows and I don't come to work before nine. -- Johnny Paycheck
Thanks Jeffrey, I made your suggested corrections , as you certianly appear to know more than I do about mail handlers. Anyway , at this point , I got postfix err , that said, - [04:08pm][Fri Jun 15][basslake:/root]# postfix stop postfix-script: stopping the Postfix mail system [04:08pm][Fri Jun 15][basslake:/root]# postfix start postfix-script: warning: /var/spool/postfix/etc/resolv.conf and /etc/resolv.conf differ postfix-script: warning: /var/spool/postfix/lib/libcrack.so.2.7 and /lib/libcrack.so.2.7 differ postfix-script: starting the Postfix mail system [04:08pm][Fri Jun 15][basslake:/root]# I always have a problem when yast asks for the computer name, I use an isp, I have no canonical domain numbers, and this always gets me in trouble with my isp. I chose to use ' basslake 127.0.0.2 ' which I figure was localhost variation. Now this is getting me error messages with postfix. I have had a problem with this since I started using linux 4 years now. I just don't understand enough about mail handlers to get it right. so any help is of great value . If I run SuSEconfig, it will put back what I answered in yast rc.config file settings. hmmm where to go from here?? I also set in /etc/postfix/main.cf , defer_transports = smtp this was not included with my main.cf , I added it after someone suggested it to defer mails so I can check them while I'm testing postfix. I have the postfix stock from suse70 cd's . Now I will add readout of, postconf -n , since making changes you suggested , maybe you can catch any clues that may help me set this up correctly ? [04:08pm][Fri Jun 15][basslake:/root]# postconf -n alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases canonical_maps = hash:/etc/postfix/canonical command_directory = /usr/sbin daemon_directory = /usr/lib/postfix debug_peer_level = 2 default_destination_concurrency_limit = 10 default_privs = nobody default_transport = smtp defer_transports = smtp disable_dns_lookups = yes header_checks = regexp:/etc/postfix/header_checks home_mailbox = /root/Mail/Incoming local_destination_concurrency_limit = 2 mail_name = Postfix on SuSE Linux 7.0 (i386) mail_owner = postfix mail_spool_directory = /var/mail masquerade_domains = basslake root.basslake.127.0.0.2 johnwm.basslake.127.0.0.2 masquerade_exceptions = root usr mydestination = $myhostname, localhost.$mydomain, xtalwind.net, localhost mydomain = basslake myhostname = basslake program_directory = /usr/lib/postfix queue_directory = /var/spool/postfix relocated_maps = hash:/etc/postfix/relocated smtpd_banner = $myhostname ESMTP $mail_name smtpd_sender_restrictions = hash:/etc/postfix/access transport_maps = hash:/etc/postfix/transport virtual_maps = hash:/etc/postfix/virtual [04:45pm][Fri Jun 15][basslake:/root]# Thanks again Jeffrey for your help. John W Mislan On Fri, 15 Jun 2001, Jeffrey Taylor wrote:
Quoting basslake
: masquerade_domains = root@basslake root.basslake.127.0.0.2 root@basslake.localh st usr@basslake usr@basslake.127.0.0.2 usr@basslake.localhost johnwm@basslake j hnwm@basslake.127.0.0.2 johnwm@basslake.localhost
You are confusing domains, hosts, and users, here and elsewhere. This must be domains and hosts, i.e, get rid of the usernames. E.g.:
masquerade_domains = basslake root.basslake.127.0.0.2 basslake.localhost basslake basslake.127.0.0.2 basslake.localhost basslake j basslake.127.0.0.2 basslake.localhost
I suspect this can be simplified. One step at at time.
Note: localhost is a host name, the usual practice is localdomain for the domain name. localhost is a reserved name. I am not sure if localdomain is just common practice or it actually has a real meaning.
masquerade_exceptions = root
Based on what you did with masquerade_domains, should probably be:
masquerade_exceptions = root usr
I suggest:
mydestination = $myhostname, localhost.$mydomain, xtalwind.net, localhost mydomain = basslake myhostname = basslake
I am assuming xtalwind.net is your ISP, basslake is your username at that ISP, basslake is also the name of your computer, and it is the only computer (i.e., no home LAN).
Try this and let us know what happens.
Jeffrey
-- I don't do Windows and I don't come to work before nine. -- Johnny Paycheck
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq and the archives at http://lists.suse.com
In case you really become frustrated, I can send you a config for the same you are trying to but using sendmail... Good luck and let me know. (nocanonify could be an option to use with postfix, it is used with sendmail) On Friday 15 June 2001 13:14, basslake wrote:
Thanks Jeffrey, I made your suggested corrections , as you certianly appear to know more than I do about mail handlers. Anyway , at this point , I got postfix err , that said, -
[04:08pm][Fri Jun 15][basslake:/root]# postfix stop postfix-script: stopping the Postfix mail system [04:08pm][Fri Jun 15][basslake:/root]# postfix start postfix-script: warning: /var/spool/postfix/etc/resolv.conf and /etc/resolv.conf differ postfix-script: warning: /var/spool/postfix/lib/libcrack.so.2.7 and /lib/libcrack.so.2.7 differ postfix-script: starting the Postfix mail system [04:08pm][Fri Jun 15][basslake:/root]#
I always have a problem when yast asks for the computer name, I use an isp, I have no canonical domain numbers, and this always gets me in trouble with my isp.
I chose to use ' basslake 127.0.0.2 ' which I figure was localhost variation. Now this is getting me error messages with postfix.
I have had a problem with this since I started using linux 4 years now. I just don't understand enough about mail handlers to get it right. so any help is of great value .
If I run SuSEconfig, it will put back what I answered in yast rc.config file settings. hmmm where to go from here??
I also set in /etc/postfix/main.cf , defer_transports = smtp this was not included with my main.cf , I added it after someone suggested it to defer mails so I can check them while I'm testing postfix.
I have the postfix stock from suse70 cd's . Now I will add readout of, postconf -n , since making changes you suggested , maybe you can catch any clues that may help me set this up correctly ?
[04:08pm][Fri Jun 15][basslake:/root]# postconf -n alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases canonical_maps = hash:/etc/postfix/canonical command_directory = /usr/sbin daemon_directory = /usr/lib/postfix debug_peer_level = 2 default_destination_concurrency_limit = 10 default_privs = nobody default_transport = smtp defer_transports = smtp disable_dns_lookups = yes header_checks = regexp:/etc/postfix/header_checks home_mailbox = /root/Mail/Incoming local_destination_concurrency_limit = 2 mail_name = Postfix on SuSE Linux 7.0 (i386) mail_owner = postfix mail_spool_directory = /var/mail masquerade_domains = basslake root.basslake.127.0.0.2 johnwm.basslake.127.0.0.2 masquerade_exceptions = root usr mydestination = $myhostname, localhost.$mydomain, xtalwind.net, localhost mydomain = basslake myhostname = basslake program_directory = /usr/lib/postfix queue_directory = /var/spool/postfix relocated_maps = hash:/etc/postfix/relocated smtpd_banner = $myhostname ESMTP $mail_name smtpd_sender_restrictions = hash:/etc/postfix/access transport_maps = hash:/etc/postfix/transport virtual_maps = hash:/etc/postfix/virtual [04:45pm][Fri Jun 15][basslake:/root]#
Thanks again Jeffrey for your help.
John W Mislan
On Fri, 15 Jun 2001, Jeffrey Taylor wrote:
Quoting basslake
: masquerade_domains = root@basslake root.basslake.127.0.0.2 root@basslake.localh st usr@basslake usr@basslake.127.0.0.2 usr@basslake.localhost johnwm@basslake j hnwm@basslake.127.0.0.2 johnwm@basslake.localhost
You are confusing domains, hosts, and users, here and elsewhere. This must be domains and hosts, i.e, get rid of the usernames. E.g.:
masquerade_domains = basslake root.basslake.127.0.0.2 basslake.localhost basslake basslake.127.0.0.2 basslake.localhost basslake j basslake.127.0.0.2 basslake.localhost
I suspect this can be simplified. One step at at time.
Note: localhost is a host name, the usual practice is localdomain for the domain name. localhost is a reserved name. I am not sure if localdomain is just common practice or it actually has a real meaning.
masquerade_exceptions = root
Based on what you did with masquerade_domains, should probably be:
masquerade_exceptions = root usr
I suggest:
mydestination = $myhostname, localhost.$mydomain, xtalwind.net, localhost mydomain = basslake myhostname = basslake
I am assuming xtalwind.net is your ISP, basslake is your username at that ISP, basslake is also the name of your computer, and it is the only computer (i.e., no home LAN).
Try this and let us know what happens.
Jeffrey
-- I don't do Windows and I don't come to work before nine. -- Johnny Paycheck
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq and the archives at http://lists.suse.com
-- Cheers, Joost
Here is one of the error messages /var/spool/postfix/defer/D/D
Try using nslookup to check those hosts, Postfix uses DNS heavily. As Joost says,
try relay_host=your.ISP.SMTP.server
Also post some of the Postfix log with the error messages.
Jeffrey
Quoting Joost van der Lugt
: * basslake
[Jun 14. 2001 17:33]: Hi all I have been trying to get mutt to send mail, but the mail keeps ending up in /var/spool/postfix/defer and says that host not found , this is with any hostname I try to send to.
Am I missing something in postfix - procmail - fetchmail -or mutt configs that is needed for sending mails through the postfix system, mail delivery agent ?
Well think I can help you pinpoint a little bit.... postfix.
You probably need something like a SMART_HOST pointing to your ISP's mailserver. I have however no experience setting this up with postfix; a search about this on google should clear things up, or maybe, maybe somebody here...
Joost
-- I don't do Windows and I don't come to work before nine. -- Johnny Paycheck
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq and the archives at http://lists.suse.com
participants (4)
-
basslake
-
Jeffrey Taylor
-
Joost van der Lugt
-
Stefan Troeger