FileRelay
Documentation
Try our Sandbox

Network Share (SMB)

Forward SAP documents to SMB shares — over the network with credentials, or to an already-mounted path. Validated both ways.

Use Cases

  • Legacy Windows file server integration
  • On-premise document archiving to network shares
  • Mounted-share drop folders (SMB, NFS, local disk)

Forward SAP documents to SMB shares two ways. Network mode connects over SMB with the pasted credentials. Local mode copies onto an already-mounted path — no SMB credentials in FileRelay at all, and it works for anything mountable (SMB, NFS, USB disk).

Validated both ways against a live Samba server: network delivery with credentials (directories auto-created, bytes verified server-side) and local copy to a mounted folder.

Reachability — network mode needs TCP 445 from the FileRelay host to the server. For Self-hosted and Managed on-prem this is automatic. For FileRelay-hosted, a site-to-site VPN or peering link is required.

Setup — network mode

  1. Identify the share — UNC looks like \\fileserver\sap-archive.
  2. Provision a service account with write at both share-level and NTFS-level.
  3. In FileRelay, add a Network Share (SMB) destination, pick Network, enter server, share, credentials, optional path.
  4. Click Test — FileRelay connects and lists the share root.

Setup — local mode

  1. Mount the share on every host that runs FileRelay workers (fstab entry, Kerberos ticket, or keychain — mount auth lives outside FileRelay).
  2. In FileRelay, pick Local and enter the mount path (e.g. /mnt/sap-archive) plus an optional path (blank = mount root).
  3. Click Test — FileRelay writes and deletes a scratch file, proving the mount is present and writable.

How it works

Network mode shells out to smbclient: creates each directory level, streams the file, and judges success from the server output (not the exit code). Local mode copies onto the mount like a normal filesystem, creating subdirectories as needed.

Mapped metadata is not stored in either mode — SMB has no portable per-file key-value store. Use SharePoint, CARA, or object storage when key-values must travel with the file.

Path

  • path — optional subfolder; blank writes to the root in both modes
  • subfolder — auto-generated by routing (date, repository, flat)

Missing directories are created if the writer has permission.

Authentication

Active Directory — domain + service-account username + password. Authenticates as DOMAIN\user. Use a dedicated service account, not a personal one.

Workgroup — set domain to WORKGROUP or leave empty.

Guest access — leave username and password empty. Not recommended for production (no access control or audit).

Permissions

The user needs writes at both layers:

Layer Required Purpose
Share Change Write files + create folders
NTFS Write, Create folders / Append data Files + subdirectories

"Access Denied" → check both. They're enforced independently.

Network requirements

Item Details
Protocol SMB 2.x or 3.x
Port 445/TCP (configurable)
Connectivity Direct from connector host
DNS Hostname must resolve (or use IP)
Firewall 445 open between connector host and server

Tips

  • Service account — non-expiring password (or managed service account) to avoid disruption from password policy.
  • SMB signing — supported transparently. No FileRelay-side config needed.
  • DFS — use the DFS namespace path as the host + share (e.g. host: contoso.local, share: dfs/sap-documents).
  • Antivirus — on-access scanning slows writes; exclude the FileRelay target folder if you see performance issues.
  • Long paths — Windows defaults to 260 chars. Keep paths concise, or enable LongPathsEnabled (Server 2016+) for unlimited.
  • SMB 3 encryption — supported when both ends speak SMB 3.0+.
  • Monitoring — enable NTFS auditing on the target folder; the file server's Event Viewer tracks every FileRelay write.

Configuration Fields

FieldTypeRequiredDescription
connectionstringRequiredConnection model: network (connect over SMB) or local (mounted path)
hoststringOptionalSMB server hostname or IP (network mode, e.g. fileserver.corp.local)
sharestringOptionalShare name (network mode, e.g. sap-archive)
local_pathstringOptionalMount path (local mode, e.g. /mnt/sap-archive)
pathstringOptionalSubfolder path within the share — blank writes to the root (both modes)
portintegerOptionalSMB port (network mode, default: 445)

Credentials

FieldTypeRequiredDescription
usernamestringOptionalLogin username (network mode, optional for guest access)
passwordstringOptionalLogin password (network mode)
domainstringOptionalWindows domain (network mode, default: WORKGROUP)

All credentials are encrypted at rest using envelope encryption.

Ready to set up Network Share (SMB)?

Create a free account and add this connector in under 2 minutes.

Get Started Free