Allt från Computex 2023

sendmail, dyndns, local mailer

Permalänk

sendmail, dyndns, local mailer

ok. har hållt på med Mailscanner och sendmail i debian testing.

/var/mail.log ger mig

May 29 02:21:43 alliz sm-msp-queue[6244]: j4S4Pb5B002124: to=root, ctladdr=root (0/0), delay=19:56:06, xdelay=00:00:00, mailer=relay, pri=12000393, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
May 29 02:24:20 alliz sm-mta[6374]: gethostbyaddr(217.209.9.26) failed: 2
May 29 02:25:00 alliz sm-mta[6374]: gethostbyaddr(192.168.0.100) failed: 2
May 29 02:25:00 alliz sm-mta[6374]: NOQUEUE: SYSERR(root): No local mailer defined

min config:

### /etc/mail/sendmail.mc ### # divert(-1) # # $Id: sendmail.mc,v 1.18 2003/08/10 21:59:28 jmates Exp $ # # # # Configuration for a sendmail daemon that accepts mail for a particular # # host in a domain from the central mail server and proxy systems. # # Outgoing mail will be passed to the central MX servers for the domain # # by default. Mail submitted on the command line is processed by # # sendmail running with the submit.cf configuration, not sendmail.cf. # # # # See sendmail's cf/README file for documentation on how to adjust this # # file to suit your needs. # # # # To build sendmail.cf from this file, configure the Makefile for the # # system in question, then run 'make config reload' to rebuild the # # configuration files and restart Sendmail. # divert(0) # # dnl adjust following for system in question (darwin, linux, solaris2 are # dnl common; see the cf/ostype directory for others). # OSTYPE(`debian') # # dnl increasing the log level allows one to debug various things # dnl define(`confLOG_LEVEL', 25) # # dnl disable aliases on clients by default # undefine(`ALIAS_FILE') # dnl keep both a vendor and a local aliases file for better manageability # dnl define(`ALIAS_FILE', `MAIL_SETTINGS_DIR`'aliases,'`MAIL_SETTINGS_DIR`'aliases.local') # dnl FEATURE(`redirect') # # dnl disable .forward support by default to prevent regular users from # dnl breaking mail routing # define(`confFORWARD_PATH', `') # # dnl Only allow user@example.org addresses. Central mail servers # dnl consequently need to handle all accounts for the domain. # MASQUERADE_AS(`localhost.localdomain') # MASQUERADE_DOMAIN(`otherhost.domain') # dnl MASQUERADE_EXCEPTION(`lists.$m') # # FEATURE(`allmasquerade') # FEATURE(`masquerade_envelope') # FEATURE(`masquerade_entire_domain') # # FEATURE(`always_add_domain') # # dnl send mail for other hosts through MX for domain # define(`SMART_HOST', `mail1.telia.com') # dnl alternative to SMART_HOST for open networks is to have a fallback # dnl define(`confFALLBACK_MX', `') # # # dnl some security options, aimed at machines that see light to # dnl meduim traffic. Tweak to suit your site. # define(`confCONNECTION_RATE_THROTTLE', `2') # # dnl slow down username lookup scans. May also want to patch sendmail # dnl to drop the connection after X many BAD_RCPT to keep spammers # dnl from consuming server resources: # dnl http://lists.roaringpenguin.com/pipermail/mimedefang/2003-Jan... # define(`confBAD_RCPT_THROTTLE', `3') # # dnl prevent huge files being used as DoS attack # define(`confMAX_MESSAGE_SIZE', `5242880') # # dnl max number of children permitted to spawn, connections refused # dnl past here. prevents runaway server under DoS, might need to be # dnl increased for a busy mail server # dnl define(`confMAX_DAEMON_CHILDREN', `24') # # dnl tightest security measures as easier to lax them later... # define(`confPRIVACY_FLAGS', ``needmailhelo,needvrfyhelo,needexpnhelo,restrictqrun,nobodyreturn,noetrn'') # # # DAEMON_OPTIONS(`Family=inet, Name=MTA-v4, Port=smtp, Addr=alliz.ath.cx' ) # # dnl set this to disable listening on port 587 # dnl FEATURE(`no_default_msa') # # dnl enable this for IPv6 support # dnl DAEMON_OPTIONS(`Family=inet6, Name=MTA6, M=O') # dnl DAEMON_OPTIONS(`Family=inet6, Name=MSA6, Port=587, M=O, M=E') # dnl define(`confBIND_OPTS', `WorkAroundBrokenAAAA') # # # dnl TLS configuration # dnl disabled by default, as Sendmail must be compiled with STARTTLS support # # dnl define(`CERT_DIR', `MAIL_SETTINGS_DIR`'certs') # dnl define(`confCACERT', `CERT_DIR/cacert.pem') # dnl define(`confCACERT_PATH', `CERT_DIR/CA') # dnl define(`confSERVER_CERT', `CERT_DIR/host.cert') # dnl define(`confSERVER_KEY', `CERT_DIR/host.key') # dnl define(`confCLIENT_CERT', `CERT_DIR/host.cert') # dnl define(`confCLIENT_KEY', `CERT_DIR/host.key') # # dnl For TLS, the smmsp user will need read access to the confSERVER_KEY # dnl file, which can be done with a chgrp smmsp and a chmod g+r on the file # dnl plus the following. Allow group writable directories due to lax # dnl permissions on certain client OS (Mac OS X, for instance). # define(`confDONT_BLAME_SENDMAIL', `GroupWritableDirPathSafe,GroupReadableKeyFile') # # # dnl SASL configuration (for SMTP AUTH) # dnl disabled by default, as Sendmail must be compiled with SASL support # # dnl how folks can authenticate, and which methods are allowed to relay # dnl define(`confAUTH_MECHANISMS', `GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN') # dnl TRUST_AUTH_MECH(`GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN') # dnl assumes sendmail compiled with _FFR_SASL_OPTS, disables # dnl PLAIN and LOGIN over non-TLS links # dnl define(`confAUTH_OPTIONS', `p') # # # dnl turn off various protocols; SMTP only by default # undefine(`UUCP_RELAY') # undefine(`BITNET_RELAY') # undefine(`DECNET_RELAY') # undefine(`FAX_RELAY') # FEATURE(`nouucp', `reject') # # dnl for optional local machine names # define(`confCW_FILE', `-o MAIL_SETTINGS_DIR`'local-host-names') # FEATURE(`use_cw_file') # # dnl optional support for trusted users (needed to support mailing list # dnl software that munges the from addresses) # define(`confCT_FILE', `-o MAIL_SETTINGS_DIR`'trusted-users') # FEATURE(`use_ct_file') # # FEATURE(`smrsh') # # dnl FEATURE(`genericstable') # dnl GENERICS_DOMAIN_FILE(`-o MAIL_SETTINGS_DIR`'generics-domains') # # dnl FEATURE(`mailertable') # # dnl FEATURE(`virtusertable') # dnl VIRTUSER_DOMAIN_FILE(`-o MAIL_SETTINGS_DIR`'virtual-domains') # dnl FEATURE(`virtuser_entire_domain') # # FEATURE(`access_db') # FEATURE(`blacklist_recipients') # dnl FEATURE(`delay_checks', `friend') # # dnl do not wait for ident # define(`confTO_IDENT', `0') # # dnl disable statistics if not using mailstats(8) # define(`STATUS_FILE', `') # # define(`confDELIVERY_MODE', `queueonly') # # dnl explicit procmail paths may be required on some systems # define(`PROCMAIL_MAILER_PATH', `/usr/bin/procmail') # FEATURE(local_procmail) # dnl FEATURE(`local_procmail', `/usr/bin/procmail', `procmail -Y -a $h -d $u') # # # # # dnl MAILER(`procmail')dnl # dnl MAILER(`smtp')dnl # O QueueDirectory=/var/spool/mqueue.in # # LOCAL_CONFIG # dnl only accept local mail, or that sent to our node name # dnl Cwlocalhost # # LOCAL_RULESET # # MAILER(procmail) # MAILER(smtp)

efter som jag har telia så svarar min på dhcp från dem. Kan jag få sendmail att svara på en dydns adress istället för ip eller vad kan jag göra. får aven no local mailer defined hela hjävla tiden. sendmail går igån om jag stänger monmothas iptablescript men utan det får jag inget internet... så nån som har nån ide??

Visa signatur

Firewall 1 och 2: obsd Filserver: fbsd Mediaserver till Atv: debian Testserver: debian Produktionsserver: debian Desktop: os x, svorak

Permalänk

Jag är inte så säker på att det är smart att låta sendmail svara med en annan adress. Rätt konfat så tar sendmail emot mail även till andra domäner (som du definierar).

Permalänk
Citat:

Ursprungligen inskrivet av Razor-SWE
Jag är inte så säker på att det är smart att låta sendmail svara med en annan adress. Rätt konfat så tar sendmail emot mail även till andra domäner (som du definierar).

manar du att sendmail ska ha localhost som adress?

Visa signatur

Firewall 1 och 2: obsd Filserver: fbsd Mediaserver till Atv: debian Testserver: debian Produktionsserver: debian Desktop: os x, svorak