Sponsored Content
Operating Systems SCO Sendmail delivers mail to local user if it exists instead of passing it to the smart relay Post 302754395 by MadeInGermany on Thursday 10th of January 2013 01:56:31 PM
Old 01-10-2013
Debugging:
Code:
sendmail -bv fred@thisdomain.com

Code:
sendmail -bt
0 fred@thisdomain.com
^D

You have

DSsmarthost

then also put

DHsmarthost

Restart sendmail to take effect.
Hopefully the vendor did not build the sendmail.cf with Sun's remote mode feature - that will inhibit things like DS.
 

10 More Discussions You Might Find Interesting

1. Programming

Sendmail & mail.local + MySQL API

I've searched this message board, and the newgroups THOROUGHLY, in search of any information towards implenting the MySQL API with C... I'm a "beginner" to the C language I suppose, and i've made a few functions in C that can be implemented into the source code of Sendmail/mail.local, so that any... (2 Replies)
Discussion started by: CGrusden19
2 Replies

2. Cybersecurity

Sendmail Relay

I'm trying to get my Solaris 7 sendmail server to allow external clients to send to external recipients. I know this has to do with relaying, but I'm not sure how unsafe I have to get to allow this. I simply need for users to login from any domain and be allowed to send mail via SMTP to any... (4 Replies)
Discussion started by: Solaris
4 Replies

3. UNIX for Dummies Questions & Answers

Sendmail open relay

All I am having a bit of a problem with my sendmail smtp server. The environment: Redhat Linux 8 sendmail-8.12.8-9.80. The mailserver is used by our application to send mail notifications to users on the system. The application is hosted on 2 different servers (separate domains)... (2 Replies)
Discussion started by: skotapal
2 Replies

4. Linux

local mail relay problem in Sendmail

I have a linux box. Sendmail is work fine in this box. The only problem I am facing is whenever I send mail using the mail command to the outside world or to root@localhost, I get this error - 127.0.0.1 localhost denied from relaying The command I used to send mail is - Ls -l | mail -s... (0 Replies)
Discussion started by: RajaRC
0 Replies

5. Solaris

Sendmail relay problem

I have a sendmail issue When I try to send a mail message using mailx I get a "connection refused by mail14.messagelabs.com" error. relay=mail14.messagelabs.com., dsn=4.0.0, stat=Deferred: Connection refused by mail14.messagelabs.com However, mail14.messagelabs.com doesn't exist. The... (4 Replies)
Discussion started by: soliberus
4 Replies

6. OS X (Apple)

Ho do I masquerade the "user@user.local" address in mail/mailx?

Hi, I'm brand new here and looking for a solution: I'm using mail or mailx. The default reply address is «myshortusername@mylongusername.local» which makes absolutely no sense for anybody receiving my emails. But how do I change it? There seem to be many solutions but none for Mac OS X.... (0 Replies)
Discussion started by: gczychi
0 Replies

7. Solaris

Sendmail error delaying relay

When I try to send mail, sendmail delays a lot. After monitoring syslog, I noticed that sendmail starts with this first message... waits a minute and gives the second message... waits another minute and then sends off the email. How do I correct this in sendmail or completly disable it. I'm sending... (0 Replies)
Discussion started by: adelsin
0 Replies

8. UNIX for Advanced & Expert Users

How to relay mail to mail server from Unix ?

Hi, I need to send email notifications from Unix/Linux box to users using mailx. In these Unix/Linux boxes mail is not configured however we are having mail server configured in our LAN. Could you please provide instructions to configure relay in these boxes so that we can relay our mails... (3 Replies)
Discussion started by: sourabhsharma
3 Replies

9. Red Hat

add relay to sendmail.cf

Hi, I notice that my relay on sendmail.cf is just "DS" and no ip. So I guess, it's using the local DNS to relay my mail which sometimes being spammed. I would like to add a new relay ip "DSxxx.xxx.xxx.xxx" on sendmail.cf. What do I need to edit sendmail.cf? Do I just use vi or m4? ... (4 Replies)
Discussion started by: itik
4 Replies

10. Solaris

Sendmail relay failing

Hi Techies Bit new to sendmail thingy. I have a Solaris 10 box. There is a request generated by customer that they want Solaris 10 box to use as relay an external smtp server. the smtp server is updated in hosts file and it is pingable. I have updated by "vi" /etc/mail/sendmail.cf # ...... (0 Replies)
Discussion started by: khaniqshahid
0 Replies
VIRTUAL(5)							File Formats Manual							VIRTUAL(5)

NAME
virtual - format of Postfix virtual table SYNOPSIS
postmap /etc/postfix/virtual DESCRIPTION
The optional virtual table specifies address redirections for local and non-local recipients or domains. The redirections are used by the cleanup(8) daemon. The redirections are recursive. The virtual redirection is applied only to recipient envelope addresses, and does not affect message headers. Think Sendmail rule set S0, if you like. Use canonical(5) mapping to rewrite header and envelope addresses in general. Normally, the virtual table is specified as a text file that serves as input to the postmap(1) command. The result, an indexed file in dbm or db format, is used for fast searching by the mail system. Execute the command postmap /etc/postfix/virtual in order to rebuild the indexed file after changing the text file. When the table is provided via other means such as NIS, LDAP or SQL, the same lookups are done as for ordinary indexed files. Alternatively, the table can be provided as a regular-expression map where patterns are given as regular expressions. In that case, the lookups are done in a slightly different way as described below. POSTFIX-STYLE VIRTUAL DOMAINS With a Postfix-style virtual domain, the virtual domain has its own user name space. Local (i.e. non-virtual) usernames are not visible in a Postfix-style virtual domain. In particular, local aliases(5) and mailing lists are not visible as localname@virtual.domain. Use a Sendmail-style virtual domain (see below) if local usernames, aliases(5) or mailing lists should be visible as localname@vir- tual.domain. Support for a Postfix-style virtual domain looks like: /etc/postfix/virtual: virtual.domain anything (right-hand content does not matter) postmaster@virtual.domain postmaster user1@virtual.domain address1 user2@virtual.domain address2, address3 The virtual.domain anything entry is required for a Postfix-style virtual domain. Do not list a Postfix-style virtual domain in the main.cf mydestination configuration parameter. Such an entry is required only for a Sendmail-style virtual domain. With a Postfix-style virtual domain, the Postfix SMTP server accepts mail for known-user@virtual.domain and rejects mail for unknown- user@virtual.domain as undeliverable. SENDMAIL-STYLE VIRTUAL DOMAINS With a Sendmail-style virtual domain, every local (i.e. non-virtual) username is visible in the virtual domain. In particular, every local alias and mailing list is visible as localname@virtual.domain. Use a Postfix-style virtual domain (see above) if local usernames, aliases(5) or mailing lists should not be visible as localname@vir- tual.domain. Support for a Sendmail-style virtual domain looks like: /etc/postfix/main.cf: mydestination = $myhostname localhost.$mydomain $mydomain virtual.domain /etc/postfix/virtual: user1@virtual.domain address1 user2@virtual.domain address2, address3 The main.cf mydestination entry is required for a Sendmail-style virtual domain. Do not specify a virtual.domain anything virtual map entry for a Sendmail-style virtual domain. Such an entry is required only with a Postfix-style virtual domain. With a Sendmail-style virtual domain, the Postfix local delivery agent delivers mail for an unknown user@virtual.domain to a local (i.e. non-virtual) user that has the same name; if no such recipient exists, the Postfix local delivery agent bounces the mail to the sender. TABLE FORMAT
The format of the virtual table is as follows, mappings being tried in the order as listed in this manual page: pattern result When pattern matches a mail address, replace it by the corresponding result. blank lines and comments Empty lines and whitespace-only lines are ignored, as are lines whose first non-whitespace character is a `#'. multi-line text A logical line starts with non-whitespace text. A line that starts with whitespace continues a logical line. With lookups from indexed files such as DB or DBM, or from networked tables such as NIS, LDAP or SQL, patterns are tried in the order as listed below: user@domain address, address, ... Mail for user@domain is redirected to address. This form has the highest precedence. user address, address, ... Mail for user@site is redirected to address when site is equal to $myorigin, when site is listed in $mydestination, or when it is listed in $inet_interfaces. This functionality overlaps with functionality of the local alias(5) database. The difference is that virtual mapping can be applied to non-local addresses. @domain address, address, ... Mail for any user in domain is redirected to address. This form has the lowest precedence. In all the above forms, when address has the form @otherdomain, the result is the same user in otherdomain. This works for the first address in the expansion only. ADDRESS EXTENSION
When a mail address localpart contains the optional recipient delimiter (e.g., user+foo@domain), the lookup order becomes: user+foo@domain, user@domain, user+foo, user, and @domain. An unmatched address extension (+foo) is propagated to the result of table lookup. REGULAR EXPRESSION TABLES
This section describes how the table lookups change when the table is given in the form of regular expressions. For a description of regu- lar expression lookup table syntax, see regexp_table(5) or pcre_table(5). Each pattern is a regular expression that is applied to the entire address being looked up. Thus, user@domain mail addresses are not broken up into their user and @domain constituent parts, nor is user+foo broken up into user and foo. Patterns are applied in the order as specified in the table, until a pattern is found that matches the search string. Results are the same as with indexed file lookups, with the additional feature that parenthesized substrings from the pattern can be inter- polated as $1, $2 and so on. BUGS
The table format does not understand quoting conventions. CONFIGURATION PARAMETERS
The following main.cf parameters are especially relevant to this topic. See the Postfix main.cf file for syntax details and for default values. Use the postfix reload command after a configuration change. virtual_maps List of virtual mapping tables. Other parameters of interest: inet_interfaces The network interface addresses that this system receives mail on. mydestination List of domains that this mail system considers local. myorigin The domain that is appended to locally-posted mail. owner_request_special Give special treatment to owner-xxx and xxx-request addresses. SEE ALSO
cleanup(8) canonicalize and enqueue mail postmap(1) create mapping table pcre_table(5) format of PCRE tables regexp_table(5) format of POSIX regular expression tables LICENSE
The Secure Mailer license must be distributed with this software. AUTHOR(S) Wietse Venema IBM T.J. Watson Research P.O. Box 704 Yorktown Heights, NY 10598, USA VIRTUAL(5)
All times are GMT -4. The time now is 11:31 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy