SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
My /etc/hosts # For loopbacking.
127.0.0.1 localhost
127.0.0.1 maq1.local.maq1_localdomain maq1.local
Relevant sendmail-slackware.mc
PHP Code:
dnl# This is the default sendmail .mc file for Slackware. To generate dnl# the sendmail.cf file from this (perhaps after making some changes), dnl# use the m4 files in /usr/share/sendmail/cf like this: dnl# dnl# cp sendmail-slackware.mc /usr/share/sendmail/cf/config.mc dnl# cd /usr/share/sendmail/cf dnl# sh Build config.cf dnl# dnl# You may then install the resulting .cf file: dnl# cp config.cf /etc/mail/sendmail.cf dnl# include(`../m4/cf.m4') VERSIONID(`default setup for Slackware Linux')dnl OSTYPE(`linux')dnl dnl# These settings help protect against people verifying email addresses dnl# at your site in order to send you email that you probably don't want: define(`confPRIVACY_FLAGS', `authwarnings,novrfy,noexpn,restrictqrun')dnl dnl# Uncomment the line below to send outgoing mail through an external server: define(`SMART_HOST',`[smtp.ig.com.br]')dnl dnl# No timeout for ident: define(`confTO_IDENT', `0')dnl dnl# Enable the line below to use smrsh to restrict what sendmail can run: dnl FEATURE(`smrsh',`/usr/sbin/smrsh')dnl dnl# See the README in /usr/share/sendmail/cf for a ton of information on dnl# how these options work: FEATURE(`authinfo',`hash -o /etc/mail/authinfo.db')dnl define(`confAUTH_OPTIONS', `A p y')dnl" FEATURE(`use_cw_file')dnl FEATURE(`use_ct_file')dnl FEATURE(`mailertable',`hash -o /etc/mail/mailertable.db')dnl FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable.db')dnl FEATURE(`access_db', `hash -T<TMPF> /etc/mail/access')dnl FEATURE(`blacklist_recipients')dnl FEATURE(`local_procmail',`',`procmail -t -Y -a $h -d $u')dnl FEATURE(`always_add_domain')dnl FEATURE(`redirect')dnl dnl# Turn this feature on if you don't always have DNS, or enjoy junk mail: dnl FEATURE(`accept_unresolvable_domains')dnl EXPOSED_USER(`root')dnl dnl# Also accept mail for localhost.localdomain: LOCAL_DOMAIN(`localhost.localdomain')dnl MAILER(local)dnl MAILER(smtp)dnl MAILER(procmail)dnl
A partial /etc/mail/sendmail.cf in sendmail.txt arquive
And finally /var/log/maillog
Code:
Mar 29 04:47:29 maq1 sendmail[3450]: r2T7l7q8003450: from=normal, size=4, class=0, nrcpts=0,
msgid=<201303290747.r2T7l7q8003450@maq1>, relay=root@localhost
Mar 29 04:49:53 maq1 sendmail[3487]: gethostbyaddr(192.168.0.2) failed: 1
Mar 29 05:00:47 maq1 sm-mta[2722]: rejecting connections on daemon MTA: load average: 12
Mar 29 05:00:47 maq1 sm-mta[2722]: rejecting connections on daemon MSA: load average: 12
Mar 29 05:00:58 maq1 sm-mta[2722]: rejecting connections on daemon MTA: load average: 12
Mar 29 05:01:03 maq1 sm-mta[2722]: rejecting connections on daemon MSA: load average: 12
Mar 29 05:01:13 maq1 sm-mta[2722]: accepting connections again for daemon MTA
Mar 29 05:06:01 maq1 sm-mta[1893]: gethostbyaddr(192.168.0.2) failed: 2
Mar 29 05:06:01 maq1 sm-mta[1914]: starting daemon (8.14.5): SMTP+queueing@00:05:00
Mar 29 05:06:01 maq1 sm-msp-queue[1917]: starting daemon (8.14.5): queueing@00:05:00
Mar 29 14:27:04 maq1 sendmail[3304]: r2THR4o7003304: from=root, size=227, class=0, nrcpts=1,
msgid=<201303291727.r2THR4o7003304@maq1>, relay=root@localhost
Mar 29 14:30:05 maq1 sm-mta[3305]: r2THR4eW003305: from=<root@maq1>, size=433, class=0, nrcpt
s=1, msgid=<201303291727.r2THR4o7003304@maq1>, proto=ESMTP, daemon=MTA, relay=localhost [127.
0.0.1]
Mar 29 14:30:05 maq1 sm-mta[3305]: r2THR4eW003305: to=<vivanguarda2@ig.com.br>, delay=00:00:0
0, mailer=relay, pri=30433, dsn=4.4.3, stat=queued
Mar 29 14:30:05 maq1 sendmail[3304]: r2THR4o7003304: to=vivanguarda2@ig.com.br, ctladdr=root
(0/0), delay=00:03:01, xdelay=00:03:01, mailer=relay, pri=30227, relay=[127.0.0.1] [127.0.0.1
], dsn=2.0.0, stat=Sent (r2THR4eW003305 Message accepted for delivery)
Mar 29 16:42:58 maq1 sendmail[3732]: gethostbyaddr(192.168.0.2) failed
What else I need to fix this difficult sending mail problem?
In case you're talking about your home machine and that I understood what you want to do.
Unless your only interest is to learn sendmail configuration I would use a tool like msmtp (you will find it on slackbuilds.org) instead of using the smart host sendmail feature.
With msmtp you'll be able to use multiple external smtp servers and don't care about having a static IP a FQDN and a site CA (to avoid your emails go to SPAM).
Problem is solved! I was trying to use it like a server. Then I tried to use like a client only and did another sendmail-slackware.mc for a client mode. Then I belive a changed line server for client in sendmail-slackware.mc edition was the point.
define(`confAUTH_OPTIONS', `A p y')dnl
Thanks a lot, Kustom42, eloi but specially Mike and TB0ne in this hard task!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.